Skip to content

Commit 649ff57

Browse files
Update security.js
1 parent 5d8a358 commit 649ff57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebServerAI/assets/AI/js/components/security.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ filter=(str, removeWords)=>{
345345
if(validate(words,FILTER_VALIDATE_DOMAIN)){
346346
if(validate(words,FILTER_VALIDATE_DOMAIN)){
347347
const removeWWW = validate(words,FILTER_VALIDATE_DOMAIN).replace('www.','');
348-
const domain = new RegExp('((http(s)?):\/\/)?(www\.)?'+removeWWW+'([-a-zA-Z0-9@:%_\+.~#?&//=]*)','g');
348+
const domain = new RegExp('((http(s)?):\/\/)?(www\.)?'+removeWWW+'([-a-zA-Z0-9@:%_+.~#?&//=]*)','g');
349349
str = str.replaceAll(domain,'');
350350
}
351351
}else{
@@ -410,4 +410,4 @@ export {validate,
410410
FILTER_FLAG_IPV6,
411411
FILTER_FLAG_NO_PRIV_RANGE,
412412
FILTER_FLAG_NO_RES_RANGE
413-
};
413+
};

0 commit comments

Comments
 (0)