Permalink
Browse files

Fixed #87 Tokenized regexp updated to expect prefix at start or part …

…of query
  • Loading branch information...
1 parent 3d2d9f5 commit d8f901407c436f42e66891ab001ab37b2869f596 @bemson committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/salt.js
View
2 src/salt.js
@@ -33,7 +33,7 @@
defaultPermissions = {world: true, owner: true, sub: true, self: true},
redirectFlag = 1,
// regexps
- r_queryIsTokenized = new RegExp('[\\.\\|' + tokenPrefix + ']'),
+ r_queryIsTokenized = new RegExp('\\.|\\||^' + tokenPrefix + '|\\|' + tokenPrefix),
r_validAbsolutePath = /^\/\/(?:\w+\/)+/,
r_trimSlashes = /^\/+|\/+$/g,
r_hasNonAlphanumericCharacter = /\W/,

0 comments on commit d8f9014

Please sign in to comment.