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"); }
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");
}