mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
Support protocol-relative URLs in the interstice
This commit is contained in:
parent
74ef3fd560
commit
3eb3451213
|
|
@ -722,7 +722,7 @@ var Tools = {
|
|||
var patterns = (function (whitelist) {
|
||||
var patterns = [];
|
||||
for (var i = 0; i < whitelist.length; ++i) {
|
||||
patterns.push(new RegExp('https?://([A-Za-z0-9-]*\\.)?' +
|
||||
patterns.push(new RegExp('^(https?:)?//([A-Za-z0-9-]*\\.)?' +
|
||||
whitelist[i] +
|
||||
'(/.*)?', 'i'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user