Permalink
Browse files

Merge pull request passwordmaker#35 from wadetb/match-profile-to-site

 Fix bug in wildcard regex that stripped '.' characters from patterns.
  • Loading branch information...
bitboxer committed Aug 4, 2011
2 parents f44a003 + 460d173 commit db3f5adbbfb11d175ed8484f4a6e10fa3f75e603
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 db3f5ad

Please sign in to comment.