sheet-router
Advanced tools
Comparing version 4.1.4 to 4.2.0
@@ -6,3 +6,3 @@ const window = require('global/window') | ||
const isElectron = (window.process && window.process.type) | ||
const isElectron = (/file:\/\//.test(window.location.origin)) | ||
@@ -40,3 +40,3 @@ module.exports = sheetRouter | ||
if (typeof tree[0] === 'string') { | ||
var route = tree[0].replace(/^[#\/]/, '') | ||
var route = tree[0].replace(/^[#/]/, '') | ||
} else { | ||
@@ -43,0 +43,0 @@ var rootArr = tree[0] |
{ | ||
"name": "sheet-router", | ||
"version": "4.1.4", | ||
"version": "4.2.0", | ||
"description": "Fast, modular client router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,3 +57,5 @@ const tape = require('tape') | ||
t.equal(cb.callCount, 1) | ||
t.deepEqual(cb.lastCall.args[0], { hash: undefined, href: 'someUrl#', pathname: 'someUrl', search: undefined }) | ||
t.deepEqual(cb.lastCall.args[0], { | ||
hash: undefined, href: 'someUrl#', pathname: 'someUrl', search: {} | ||
}) | ||
}) | ||
@@ -60,0 +62,0 @@ |
28834
571