🐛 Fix regex filtering cargo feature names

Now allows underscores too
This commit is contained in:
Miguel de Benito Delgado 2026-09-20 14:59:33 +02:00
parent 3b35187676
commit 50e2bf02c8

View File

@ -82,7 +82,7 @@ export function readOptions(argv) {
.map((token) => token.trim())
.filter(Boolean);
for (const token of featureList) {
if (!/^[a-z0-9-]+$/.test(token))
if (!/^[a-z0-9-_]+$/.test(token))
throw new Error(`Invalid --features token: ${token}`);
}
const features = [...new Set(featureList)].sort();