Skip to content

Commit 2bb241c

Browse files
Copilothotlong
andcommitted
Fix Field.select helper to remove dots from select values (strict snake_case)
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 634dc9f commit 2bb241c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/spec/src/data/field.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const Field = {
265265
return str
266266
.toLowerCase()
267267
.replace(/\s+/g, '_') // Replace spaces with underscores
268-
.replace(/[^a-z0-9_.]/g, ''); // Remove invalid characters
268+
.replace(/[^a-z0-9_]/g, ''); // Remove invalid characters (keeping underscores only)
269269
};
270270

271271
// Support both old and new signatures:

0 commit comments

Comments
 (0)