From 5f6708c879d0d2503d2096ff0c24ac0d1a249d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PetaByteBoy=20//=20Milan=20P=C3=A4ssler?= Date: Mon, 23 Nov 2015 17:27:42 +0100 Subject: [PATCH] allow "#%21" instead of "#!" fix #19 --- lib/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/router.js b/lib/router.js index 51b9e0e..5592cee 100644 --- a/lib/router.js +++ b/lib/router.js @@ -66,12 +66,12 @@ define(function () { if (!s) return false - if (!s.startsWith("#!")) + if (!(s.startsWith("#!") || s.startsWith("#%21"))) return false var targetSet = false - s.slice(2).split(";").forEach(function (d) { + s.slice(s.startsWith("#!") ? 2 : 4).split(";").forEach(function (d) { var args = d.split(":") if (args[0] === "v" && args[1] in views) {