Skip to content

Commit

Permalink
Fix bug in wildcard regex that stripped '.' characters from patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
wadetb committed Aug 4, 2011
1 parent 968737b commit 460d173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/popup.js
Original file line number Diff line number Diff line change
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 460d173

Please sign in to comment.