Skip to content

Commit

Permalink
Try sizzles re method for production testing
Browse files Browse the repository at this point in the history
* Applies to OpenUserJS#133
  • Loading branch information
Martii committed Jun 13, 2014
1 parent a6169da commit 9f8f7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/modelQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var parseSearchConditions = function(q, prefixSearchFields, fullSearchFields) {

// Match all the terms but in any order
terms.forEach(function (term) {
var isNONASCII = unescape(encodeURIComponent(term)).length !== term.length;
var isNONASCII = /^\W/.test(term);
if (isNONASCII) {
prefixStr += '(?=.*?(^\|[ \n\r\t.,\'"\+!?-]+)' + term + ')';
} else {
Expand Down

0 comments on commit 9f8f7d6

Please sign in to comment.