From b132d3b3cf203a2a8d5c369b104b97b0b5685d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Mon, 20 Jul 2020 23:05:36 +0800 Subject: [PATCH] Remove hash from url url.split(#)[0] --- src/drivers/npm/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 7b7fc079e..bce3bf326 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -137,7 +137,7 @@ class Driver { } open(url) { - return new Site(url, this) + return new Site(url.split('#')[0], this) } log(message, source = 'driver') {