Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 92ddfa8

Browse files
committed
Properly apply prefix handling after config resolution
1 parent 9ea9b58 commit 92ddfa8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ast_statements.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ namespace Sass {
107107
if (!withcfg->filters.count(name.norm()))
108108
return nullptr;
109109
}
110-
// Should we apply some prefixes
111-
if (!withcfg->prefix.empty()) {
112-
sass::string prefix = withcfg->prefix;
113-
name = EnvKey(prefix + name.orig());
114-
}
115110
// Then try to find the named item
116111
auto varcfg = withcfg->config.find(name);
117112
if (varcfg != withcfg->config.end()) {
@@ -123,6 +118,11 @@ namespace Sass {
123118
return &varcfg->second;
124119
}
125120
}
121+
// Should we apply some prefixes
122+
if (!withcfg->prefix.empty()) {
123+
sass::string prefix = withcfg->prefix;
124+
name = EnvKey(prefix + name.orig());
125+
}
126126
it += 1;
127127
}
128128
return nullptr;

0 commit comments

Comments
 (0)