Permalink
Browse files

Fix bug in wildcard regex that stripped '.' characters from patterns.

  • Loading branch information...
wadetb committed Aug 4, 2011
1 parent 968737b commit 460d17300566b2a25360a34d453f5ed23c8fc63a
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/popup.js
View
@@ -22,7 +22,7 @@ function getAutoProfileIdForUrl(url) {
if (pat[0] == '/' && pat[pat.length-1] == '/') {
pat = pat.substr(1, pat.length-2);
} else {
pat = pat.replace(/[$.+()^\[\]\\|{},]/g, '');
pat = pat.replace(/[$+()^\[\]\\|{},]/g, '');
pat = pat.replace(/\?/g, '.');
pat = pat.replace(/\*/g, '.*');
}

0 comments on commit 460d173

Please sign in to comment.