This commit is contained in:
Jordan Pittman 2022-09-21 14:20:29 -04:00
parent 59fc32e3ad
commit 78eea5bee0

View file

@ -22,7 +22,8 @@ export function findAtConfigPath(root, result) {
throw rule.error('Only `@config` at-rule is allowed per file.')
}
configPath = rule.params.replace(/^['"]|['"]$/, '')
configPath = rule.params.replace(/^['"]|['"]$/g, '')
rule.remove()
if (path.isAbsolute(configPath)) {
throw rule.error('The `@config` at-rule cannot be used with an absolute path.')