From 5388aeded931252c9df751506e5228f72a8c2b2f Mon Sep 17 00:00:00 2001 From: Clint Brown Date: Tue, 19 Sep 2017 14:47:30 +1000 Subject: [PATCH] Allow underscores in name validation --- frontend/src/component/strategies/add-strategy.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/strategies/add-strategy.jsx b/frontend/src/component/strategies/add-strategy.jsx index 2f31583755..7647c66bae 100644 --- a/frontend/src/component/strategies/add-strategy.jsx +++ b/frontend/src/component/strategies/add-strategy.jsx @@ -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} />