Skip to content

Commit

Permalink
Updating name validators in subsquid and presearch
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Jul 7, 2024
1 parent c5f1bad commit 3e1248f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_presearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters and numbers only.'),
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_subsquid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters and numbers only.'),
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
Expand Down

0 comments on commit 3e1248f

Please sign in to comment.