1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Allow underscores in name validation

This commit is contained in:
Clint Brown 2017-09-19 14:47:30 +10:00
parent 8273eef821
commit 5388aeded9

View File

@ -128,7 +128,7 @@ class AddStrategy extends Component {
name="name"
required
disabled={editmode}
pattern="^[0-9a-zA-Z\.\-]+$"
pattern="^[0-9a-zA-Z\.\-\_]+$"
onChange={({ target }) => setValue('name', trim(target.value))}
value={input.name}
/>