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) {
157157 * @param declaration
158158 */
159159 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;
161161
162162 // reverse the original source-map to find the original sass file
163163 var cssStart = declaration . position . start ;
@@ -175,7 +175,7 @@ module.exports = function (bannerWidth, libraryPaths) {
175175 // additional capture groups are needed to match quotations correctly
176176 // escaped quotations are not considered
177177 declaration . value = declaration . value
178- . split ( REGEX )
178+ . split ( URL_STATEMENT_REGEX )
179179 . map ( eachSplitOrGroup )
180180 . join ( '' ) ;
181181
You can’t perform that action at this time.
0 commit comments