Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix this.route #1

Open
instance-pro opened this issue Jul 30, 2013 · 1 comment
Open

Fix this.route #1

instance-pro opened this issue Jul 30, 2013 · 1 comment

Comments

@instance-pro
Copy link

Fix for using: i18n.route('')
Fix upper-lowercase i18n.route('TEST') and i18n.route('test') is self now

this.route = function(route) {
return new RegExp("^(/("+self.options.enabled.join("|")+"))?/?" + (route ? route : "") + "/?$", "i");
}

@larafale
Copy link
Owner

hello @Hlop , can you send pull request for both of your fixes ? thanks

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

No branches or pull requests

2 participants