Skip to content

Commit dad31b5

Browse files
committed
fix hashbang remove
1 parent cac351f commit dad31b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ p.initHashMode = function () {
158158
return
159159
}
160160
if (!self._hashbang && hash && hash.charAt(1) === '!') {
161-
setHash(hash.slice(1), true)
161+
setHash(hash.slice(2), true)
162162
return
163163
}
164164
hash = hash.replace(/^#!?/, '')

0 commit comments

Comments
 (0)