diff options
author | chenchao <wenbushi@gmail.com> | 2019-11-05 10:37:17 +0800 |
---|---|---|
committer | chenchao <wenbushi@gmail.com> | 2019-11-05 10:37:17 +0800 |
commit | 5758100f43c72efb5d6ad15617cd6c3c7c2abfc8 (patch) | |
tree | aee18717f1be9b148077c828581b9277c381f6b5 | |
parent | 689fa0526e7cdcfee9e62cf124495c889b39f52e (diff) |
support url started with localhost
-rw-r--r-- | src/shared/urls.ts | 2 |
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 { |