From 5758100f43c72efb5d6ad15617cd6c3c7c2abfc8 Mon Sep 17 00:00:00 2001 From: chenchao Date: Tue, 5 Nov 2019 10:37:17 +0800 Subject: [PATCH] support url started with localhost --- src/shared/urls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {