Case insensitive packages / URLs

This commit is contained in:
Roman Yurchak 2018-08-22 17:35:40 +03:00
parent 068906bbf7
commit 99772a9ac8
1 changed files with 3 additions and 3 deletions

View File

@ -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) => {