sheet-router
Advanced tools
Comparing version 4.1.3 to 4.1.4
/* eslint-disable no-useless-escape */ | ||
const electron = '^[file\:|\/].*\/index.html?(\/{1})?' | ||
const electron = '^(file:\/\/|\/)(.*\.html?\/?)?' | ||
const protocol = '^(http(s)?(:\/\/))?(www\.)?' | ||
@@ -4,0 +4,0 @@ const domain = '[a-zA-Z0-9-_\.]+(:[0-9]{1,5})?(\/{1})?' |
{ | ||
"name": "sheet-router", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "Fast, modular client router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ const test = require('tape') | ||
test('pathname', (t) => { | ||
t.plan(6) | ||
t.plan(8) | ||
t.equal(p('https://foobar.com/bin/baz#bar'), 'bin/baz/bar') | ||
@@ -14,2 +14,4 @@ t.equal(p('http://foobar.com/bin/baz#bar'), 'bin/baz/bar') | ||
t.equal(p('file:///Users/anon/src/juliangruber/dat-desktop/index.html', true), '') | ||
t.equal(p('file:///Users/anon/src/juliangruber/dat-desktop/app.html', true), '') | ||
t.equal(p('file:///regular/router/path', true), '/regular/router/path') | ||
}) |
28829
569