Skip to content

Commit

Permalink
Prevent spaces in names
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Jul 19, 2024
1 parent f1596d7 commit cdb8e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wrangler/src/config/validation-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const isString: ValidatorFn = (diagnostics, field, value) => {
*/
export const isValidName: ValidatorFn = (diagnostics, field, value) => {
if (
(typeof value === "string" && /^$|^[a-z0-9_ ][a-z0-9-_ ]*$/.test(value)) ||
(typeof value === "string" && /^$|^[a-z0-9_][a-z0-9-_]*$/.test(value)) ||
value === undefined
) {
return true;
Expand Down

0 comments on commit cdb8e09

Please sign in to comment.