From eaf3fbc14a76871fa9497a1f210534d039719167 Mon Sep 17 00:00:00 2001 From: koooooo-7 <369491420@qq.com> Date: Thu, 18 Feb 2021 21:13:53 +0800 Subject: [PATCH] code refine. --- test/unit/core-util.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/core-util.test.js b/test/unit/core-util.test.js index 68cf980bb..0ebbf7bbd 100644 --- a/test/unit/core-util.test.js +++ b/test/unit/core-util.test.js @@ -20,7 +20,7 @@ describe('core/util', () => { }); test('non external local url with three ///', () => { - const result = isExternal(`//${location.host}/docsify/demo.md`); + const result = isExternal(`///${location.host}/docsify/demo.md`); expect(result).toBeFalsy(); });