Skip to content

Commit dc718a5

Browse files
author
benholloway
committed
more sensible variable name
1 parent a9c1023 commit dc718a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/build/node-sass.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = function (bannerWidth, libraryPaths) {
157157
* @param declaration
158158
*/
159159
function eachDeclaration(declaration) {
160-
var REGEX = /(url\s*\()\s*(?:(['"])((?:(?!\2).)*)(\2)|([^'"](?:(?!\)).)*[^'"]))\s*(\))/g;
160+
var URL_STATEMENT_REGEX = /(url\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

0 commit comments

Comments
 (0)