File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ module.exports = function (bannerWidth, libraryPaths) {
157
157
* @param declaration
158
158
*/
159
159
function eachDeclaration ( declaration ) {
160
- var REGEX = / ( u r l \s * \( ) \s * (?: ( [ ' " ] ) ( (?: (? ! \2) .) * ) ( \2) | ( [ ^ ' " ] (?: (? ! \) ) .) * [ ^ ' " ] ) ) \s * ( \) ) / g;
160
+ var URL_STATEMENT_REGEX = / ( u r l \s * \( ) \s * (?: ( [ ' " ] ) ( (?: (? ! \2) .) * ) ( \2) | ( [ ^ ' " ] (?: (? ! \) ) .) * [ ^ ' " ] ) ) \s * ( \) ) / g;
161
161
162
162
// reverse the original source-map to find the original sass file
163
163
var cssStart = declaration . position . start ;
@@ -175,7 +175,7 @@ module.exports = function (bannerWidth, libraryPaths) {
175
175
// additional capture groups are needed to match quotations correctly
176
176
// escaped quotations are not considered
177
177
declaration . value = declaration . value
178
- . split ( REGEX )
178
+ . split ( URL_STATEMENT_REGEX )
179
179
. map ( eachSplitOrGroup )
180
180
. join ( '' ) ;
181
181
You can’t perform that action at this time.
0 commit comments