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

support dot in name, closes #26

This commit is contained in:
sveisvei 2016-12-29 12:27:41 +01:00
parent adde1652be
commit 1449e3a8a6
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const mapStateToProps = createMapper({
getDefault () { getDefault () {
let name; let name;
try { try {
[, name] = document.location.hash.match(/name=([a-z0-9-_]+)/i); [, name] = document.location.hash.match(/name=([a-z0-9-_.]+)/i);
} catch (e) {} } catch (e) {}
return { name }; return { name };
}, },

View File

@ -58,7 +58,7 @@ export default connect(createMapper({
getDefault () { getDefault () {
let name; let name;
try { try {
[, name] = document.location.hash.match(/name=([a-z0-9-_]+)/i); [, name] = document.location.hash.match(/name=([a-z0-9-_.]+)/i);
} catch (e) {} } catch (e) {}
return { name }; return { name };
}, },