Skip to content

Commit

Permalink
Merge pull request OptimalBits#121 from jonmassot/quickfix/mongo-dot-…
Browse files Browse the repository at this point in the history
…unsupported

Added the general regex flag to the encode_text
  • Loading branch information
manast committed May 16, 2015
2 parents 4f1e9b5 + a3a55cf commit 52e766b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ MongoDBBackend.prototype = {
function encodeText(text) {
if (typeof text == 'string' || text instanceof String) {
text = encodeURIComponent(text);
text = text.replace(/\./, '%2E');
text = text.replace(/\./g, '%2E');
}
return text;
}
Expand Down

0 comments on commit 52e766b

Please sign in to comment.