gulp-rev-rewrite
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -84,2 +84,3 @@ 'use strict'; | ||
} | ||
file.contents = Buffer.from(newContents); | ||
@@ -111,7 +112,9 @@ stream.push(file); | ||
} | ||
if (!filePath.startsWith('/') && !prefix.endsWith('/')) { | ||
return `${prefix}/${filePath}`; | ||
} | ||
return `${prefix}${filePath}`; | ||
} | ||
}; |
@@ -10,9 +10,9 @@ 'use strict'; | ||
const FRONT_DELIMITERS = ['"', '\'', '\\s', ',', '(', '/', '=']; | ||
const BACK_DELIMITERS = ['"', '\'', '\\s', ',', ')', '\\\\', '?', '#']; | ||
const FRONT_DELIMITERS = ['"', '\'', '\\s', ',', '\\(', '\\/', '=', '^', '%2F']; | ||
const BACK_DELIMITERS = ['"', '\'', '\\s', ',', '\\)', '\\\\', '\\?', '#', '$', '&']; | ||
const regexp = new RegExp( | ||
`([${FRONT_DELIMITERS.join('')}]|^)(${escapeRegExp( | ||
`(${FRONT_DELIMITERS.join('|')})(${escapeRegExp( | ||
unreved | ||
)})([${BACK_DELIMITERS.join('')}]|$)`, | ||
)})(${BACK_DELIMITERS.join('|')})`, | ||
'g' | ||
@@ -19,0 +19,0 @@ ); |
{ | ||
"name": "gulp-rev-rewrite", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Rewrite occurences of filenames which have been renamed by gulp-rev", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"ava": "1.0.0-beta.4", | ||
"ava": "^1.1.0", | ||
"event-stream": "3.3.4", | ||
@@ -48,4 +48,4 @@ "gulp-rev": "^9.0.0", | ||
"vinyl": "^2.1.0", | ||
"xo": "^0.23.0" | ||
"xo": "^0.24.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9846