Add _ to segmentValueCharset
This commit is contained in:
parent
0b13431b83
commit
4c70d11a86
File diff suppressed because one or more lines are too long
@ -17,14 +17,12 @@ const store = configureStore(socket);
|
|||||||
initRouter(routes, store);
|
initRouter(routes, store);
|
||||||
runModules({ store, socket });
|
runModules({ store, socket });
|
||||||
|
|
||||||
const renderRoot = () => {
|
const renderRoot = () => render(
|
||||||
render(
|
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<Root store={store} />
|
<Root store={store} />
|
||||||
</AppContainer>,
|
</AppContainer>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
|
||||||
renderRoot();
|
renderRoot();
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ function match(routes, location) {
|
|||||||
export default function initRouter(routes, store) {
|
export default function initRouter(routes, store) {
|
||||||
const patterns = [];
|
const patterns = [];
|
||||||
const opts = {
|
const opts = {
|
||||||
segmentValueCharset: 'a-zA-Z0-9-.%'
|
segmentValueCharset: 'a-zA-Z0-9-_.%'
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.keys(routes).forEach(name =>
|
Object.keys(routes).forEach(name =>
|
||||||
|
Loading…
Reference in New Issue
Block a user