We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0442b commit 216425fCopy full SHA for 216425f
lib/file-handlers/css.js
@@ -5,7 +5,7 @@ var utils = require('../utils');
5
6
function changeExactlyMatchedUrl (text, oldUrl, newUrl) {
7
// starts with ' " ( ends with ' " )
8
- var exactlyMatchedPattern = format('([\'"\(\s])%s([\'"\)\s])', _.escapeRegExp(oldUrl));
+ var exactlyMatchedPattern = format('([\'"\\(\\s])%s([\'"\\)\\s])', _.escapeRegExp(oldUrl));
9
var exactlyMatchedRegexp = new RegExp(exactlyMatchedPattern, 'g');
10
text = text.replace(exactlyMatchedRegexp, function changeUrl (match, g1, g2) {
11
return g1 + newUrl + g2;
0 commit comments