mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
🐛 Fix regex filtering cargo feature names
Now allows underscores too
This commit is contained in:
parent
3b35187676
commit
50e2bf02c8
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user