From 1449e3a8a6c83658a230fdb715404543f64a3bd1 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Thu, 29 Dec 2016 12:27:41 +0100 Subject: [PATCH] support dot in name, closes #26 --- frontend/src/component/feature/form-add-container.jsx | 2 +- frontend/src/component/strategies/add-container.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/form-add-container.jsx b/frontend/src/component/feature/form-add-container.jsx index 2fe90c51d6..3afb20b3c2 100644 --- a/frontend/src/component/feature/form-add-container.jsx +++ b/frontend/src/component/feature/form-add-container.jsx @@ -10,7 +10,7 @@ const mapStateToProps = createMapper({ getDefault () { let name; try { - [, name] = document.location.hash.match(/name=([a-z0-9-_]+)/i); + [, name] = document.location.hash.match(/name=([a-z0-9-_.]+)/i); } catch (e) {} return { name }; }, diff --git a/frontend/src/component/strategies/add-container.js b/frontend/src/component/strategies/add-container.js index 9b82ee8e7f..cd718cd0e9 100644 --- a/frontend/src/component/strategies/add-container.js +++ b/frontend/src/component/strategies/add-container.js @@ -58,7 +58,7 @@ export default connect(createMapper({ getDefault () { let name; try { - [, name] = document.location.hash.match(/name=([a-z0-9-_]+)/i); + [, name] = document.location.hash.match(/name=([a-z0-9-_.]+)/i); } catch (e) {} return { name }; },