postcss 8.2.12 → 8.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/lib/previous-map.js +2 -2
- package/lib/processor.js +1 -1
- package/package.json +1 -1
package/lib/previous-map.js
CHANGED
@@ -48,11 +48,11 @@ class PreviousMap {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
getAnnotationURL(sourceMapString) {
|
51
|
-
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(
|
51
|
+
return sourceMapString.match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1].trim()
|
52
52
|
}
|
53
53
|
|
54
54
|
loadAnnotation(css) {
|
55
|
-
let annotations = css.match(/\/\*\s*# sourceMappingURL
|
55
|
+
let annotations = css.match(/\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm)
|
56
56
|
|
57
57
|
if (annotations && annotations.length > 0) {
|
58
58
|
// Locate the last sourceMappingURL to avoid picking up
|
package/lib/processor.js
CHANGED