Add _ to segmentValueCharset

This commit is contained in:
Ken-Håvard Lieng 2017-05-21 22:59:35 +02:00
parent 0b13431b83
commit 4c70d11a86
3 changed files with 26 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@ -17,14 +17,12 @@ const store = configureStore(socket);
initRouter(routes, store);
runModules({ store, socket });
const renderRoot = () => {
render(
<AppContainer>
<Root store={store} />
</AppContainer>,
document.getElementById('root')
);
};
const renderRoot = () => render(
<AppContainer>
<Root store={store} />
</AppContainer>,
document.getElementById('root')
);
renderRoot();

View File

@ -81,7 +81,7 @@ function match(routes, location) {
export default function initRouter(routes, store) {
const patterns = [];
const opts = {
segmentValueCharset: 'a-zA-Z0-9-.%'
segmentValueCharset: 'a-zA-Z0-9-_.%'
};
Object.keys(routes).forEach(name =>