aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenchao <wenbushi@gmail.com>2019-11-05 10:37:17 +0800
committerchenchao <wenbushi@gmail.com>2019-11-05 10:37:17 +0800
commit5758100f43c72efb5d6ad15617cd6c3c7c2abfc8 (patch)
treeaee18717f1be9b148077c828581b9277c381f6b5
parent689fa0526e7cdcfee9e62cf124495c889b39f52e (diff)
support url started with localhost
-rw-r--r--src/shared/urls.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/urls.ts b/src/shared/urls.ts
index 64ea4f2..b256b20 100644
--- a/src/shared/urls.ts
+++ b/src/shared/urls.ts
@@ -5,7 +5,7 @@ const trimStart = (str: string): string => {
return str.replace(/^\s+/, '');
};
-const SUPPORTED_PROTOCOLS = ['http:', 'https:', 'ftp:', 'mailto:', 'about:'];
+const SUPPORTED_PROTOCOLS = ['http:', 'https:', 'ftp:', 'mailto:', 'about:', 'localhost:'];
const searchUrl = (keywords: string, search: Search): string => {
try {