1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00
galene/static
Antonin Décimo 31a5a8e8f1 Fix escaping of \ in character class.
> Rejeté. Ce n'est pas un escape.

D’après mes tests, c’est considéré comme un escape. Doubler le
caractère serait suffisant.

    const url = 'https://example\\.com';
    const urlRegexp1 = /https?:\/\/[-a-zA-Z0-9@:%/._\+~#=?]+[-a-zA-Z0-9@:%/_\+~#=]/g;
    const urlRegexp2 = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g;
    console.log(url.length); // 20
    console.log(urlRegexp1.exec(url)); // ["https://example"]
    console.log(urlRegexp2.exec(url)); // ["https://example\.com"]
2020-05-11 00:33:58 +02:00
..
common.css Initial commit. 2020-04-25 01:06:57 +02:00
ice-servers.json Add sample ice-servers.json. 2020-04-30 19:13:32 +02:00
index.html Initial commit. 2020-04-25 01:06:57 +02:00
mainpage.css Initial commit. 2020-04-25 01:06:57 +02:00
mainpage.js Don't allow empty group name in mainpage. 2020-04-25 14:34:47 +02:00
sfu.css Remove mentions of #anonymous-users. 2020-05-10 21:41:33 +02:00
sfu.html Correctly close input tags. 2020-05-10 21:43:09 +02:00
sfu.js Fix escaping of \ in character class. 2020-05-11 00:33:58 +02:00