Skip to content

Commit 2660c12

Browse files
committed
Update searchJumper.user.js
1 parent 75407f3 commit 2660c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searchJumper.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10913,7 +10913,7 @@
1091310913
}
1091410914
if (targetUrl === '') {
1091510915
let canBeUrl = getSelectStr() || self.searchJumperInputKeyWords.value || self.tileInput.value;
10916-
if (!hasWordParam && canBeUrl && /^(http|ftp)/i.test(canBeUrl)) {
10916+
if (!hasWordParam && canBeUrl && /^\w{1,8}:/i.test(canBeUrl)) {
1091710917
targetUrl = canBeUrl;
1091810918
targetUrl = targetUrl.replace(/%(\w{2})/g, (match, letter) => `%${letter.toUpperCase()}`);
1091910919
} else {

0 commit comments

Comments
 (0)