Made sure we do not operation loop

This commit is contained in:
n1073645 2019-12-04 10:05:26 +00:00
parent b61fd59b60
commit c42aad7c82
2 changed files with 15 additions and 4 deletions

View file

@ -89,6 +89,14 @@ class DefangURL extends Operation {
flags: "i",
args: [true, true, true, "Everything"],
}
],
[
{
match: "^\\s*(h(tt|xx)ps?|ftp)(://|\\[://\\])(-(\\.|\\[\\.\\]))?([^\\s/?\\.\\[\\]#-]+(\\.|\\[\\.\\])?)+(/\\S*)?\\s*$",
flags: "i",
shouldMatch: true,
args: [true, true, true, "Everything"],
}
]);
}