Skip to content

Conversation

KefirNot
Copy link
Contributor

@KefirNot KefirNot commented May 8, 2018

No description provided.

src/router.tsx Outdated
@@ -61,6 +61,7 @@ export default class Router extends React.Component<Props, State> {
path: string;
location: any;
private subscriber: any;
private static clearSlashesRegex = /\/+/g;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А регулярку предлагаю такую /\/{2,}/g чтобы не трогать одинарные слэши

@olegman olegman merged commit ff40d51 into router-async:master May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants