|
@@ -170,9 +170,9 @@ const Extract = {
|
|
protocol = "[A-Z]+://",
|
|
protocol = "[A-Z]+://",
|
|
hostname = "[-\\w]+(?:\\.\\w[-\\w]*)+",
|
|
hostname = "[-\\w]+(?:\\.\\w[-\\w]*)+",
|
|
port = ":\\d+",
|
|
port = ":\\d+",
|
|
- path = "/[^.!,?;\"'<>()\\[\\]{}\\s\\x7F-\\xFF]*";
|
|
|
|
|
|
+ path = "/[^.!,?\"<>\\[\\]{}\\s\\x7F-\\xFF]*";
|
|
|
|
|
|
- path += "(?:[.!,?]+[^.!,?;\"'<>()\\[\\]{}\\s\\x7F-\\xFF]+)*";
|
|
|
|
|
|
+ path += "(?:[.!,?]+[^.!,?\"<>\\[\\]{}\\s\\x7F-\\xFF]+)*";
|
|
const regex = new RegExp(protocol + hostname + "(?:" + port +
|
|
const regex = new RegExp(protocol + hostname + "(?:" + port +
|
|
")?(?:" + path + ")?", "ig");
|
|
")?(?:" + path + ")?", "ig");
|
|
return Extract._search(input, regex, null, displayTotal);
|
|
return Extract._search(input, regex, null, displayTotal);
|