[Pkg-javascript-commits] [backbone] 129/281: \w still includes \d http://www.regular-expressions.info/charclass.html#shorthand

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.0
in repository backbone.

commit 9e80ca1457d4999472633ef7d91c23a26d05c992
Author: Fábio M. Costa <fabio at meiocodigo.com>
Date:   Wed Dec 21 01:29:50 2011 -0200

    \w still includes \d http://www.regular-expressions.info/charclass.html#shorthand
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index f4ad577..a74453b 100644
--- a/backbone.js
+++ b/backbone.js
@@ -638,8 +638,8 @@
 
   // Cached regular expressions for matching named param parts and splatted
   // parts of route strings.
-  var namedParam    = /:[\w\d]+/g;
-  var splatParam    = /\*[\w\d]+/g;
+  var namedParam    = /:\w+/g;
+  var splatParam    = /\*\w+/g;
   var escapeRegExp  = /[-[\]{}()+?.,\\^$|#\s]/g;
 
   // Set up all inheritable **Backbone.Router** properties and methods.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list