Skip to content

Commit

Permalink
Merge pull request #35 from wadetb/match-profile-to-site
Browse files Browse the repository at this point in the history
 Fix bug in wildcard regex that stripped '.' characters from patterns.
  • Loading branch information
bitboxer committed Aug 4, 2011
2 parents f44a003 + 460d173 commit db3f5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/popup.js
Expand Up @@ -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, '.*');
}
Expand Down

0 comments on commit db3f5ad

Please sign in to comment.