Currently, if "processUrls" is set to true, the string map will apply to any parenthesized expression in an at-rule. For example:
/*rtl:options:{
"stringMap": [
{
"name" : "ltr-rtl",
"priority": 100,
"search" : ["ltr"],
"replace" : ["rtl"],
"options" : {
"scope" : "url",
"ignoreCase" : true
}
}
],
"processUrls": true
}*/
@foo (rtl);
This is particularly problematic when combined with other PostCSS plugins that add custom at-rules, which may involve the text rtl at various points. As a workaround, I can set "processUrls": {"atrule": false}, but that means that an actual url() expression in an at-rule doesn't get converted.
Currently, if
"processUrls"is set totrue, the string map will apply to any parenthesized expression in an at-rule. For example:This is particularly problematic when combined with other PostCSS plugins that add custom at-rules, which may involve the text
rtlat various points. As a workaround, I can set"processUrls": {"atrule": false}, but that means that an actualurl()expression in an at-rule doesn't get converted.