Skip to content

Commit ad3412a

Browse files
committed
match only single escaped backslash
1 parent a363ade commit ad3412a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/@apostrophecms/asset/lib/webpack/media-to-container-queries-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function (source) {
6666

6767
const containerQuery = convertToContainerQuery(mediaFeature, content);
6868

69-
const root = postcss.parse(match.replaceAll(/[^\\]\\[frntv]/g, ''));
69+
const root = postcss.parse(match.replaceAll(/(?<!\\)\\[frntv]/g, ''));
7070
root.walkRules(rule => {
7171
const newRule = rule.clone();
7272
newRule.selectors = newRule.selectors.map(selector => {

0 commit comments

Comments
 (0)