Commit 99772a9a authored by Roman Yurchak's avatar Roman Yurchak

Case insensitive packages / URLs

parent 068906bb
......@@ -3,10 +3,10 @@
*/
// Regexp for validating package name and URI
var package_name_regexp = '[a-zA-Z0-9_\-]+'
var package_name_regexp = '[a-z0-9_\-]+'
var package_uri_regexp = new RegExp(
'^https?://.*?(' + package_name_regexp + ').js$');
var package_name_regexp = new RegExp('^' + package_name_regexp + '$');
'^https?://.*?(' + package_name_regexp + ').js$', 'i');
var package_name_regexp = new RegExp('^' + package_name_regexp + '$', 'i');
var languagePluginLoader = new Promise((resolve, reject) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment