From 59c28de9244268b30e04b15132f72a6327ea2366 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 10 Mar 2015 12:53:44 +0000 Subject: [PATCH] [fixed] Empty query string now routes correctly --- modules/PathUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/PathUtils.js b/modules/PathUtils.js index f911d96001..82f37c0cf3 100644 --- a/modules/PathUtils.js +++ b/modules/PathUtils.js @@ -5,7 +5,7 @@ var qs = require('qs'); var paramCompileMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|[*.()\[\]\\+|{}^$]/g; var paramInjectMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$?]*[?]?)|[*]/g; var paramInjectTrailingSlashMatcher = /\/\/\?|\/\?\/|\/\?/g; -var queryMatcher = /\?(.+)/; +var queryMatcher = /\?(.*)$/; var _compiledPatterns = {};