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:
parent
adde1652be
commit
1449e3a8a6
@ -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 };
|
||||||
},
|
},
|
||||||
|
@ -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 };
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user