From 78eea5bee049ed267600eafd43136aec4198bb21 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Wed, 21 Sep 2022 14:20:29 -0400 Subject: [PATCH] wip --- src/lib/findAtConfigPath.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/findAtConfigPath.js b/src/lib/findAtConfigPath.js index 067e8e312..81bf9cae4 100644 --- a/src/lib/findAtConfigPath.js +++ b/src/lib/findAtConfigPath.js @@ -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.')