From 1a53d2a39a51c3f596cad74356efb6a81e8f479e Mon Sep 17 00:00:00 2001
From: Thomas Rientjes <synzvato@protonmail.com>
Date: Sun, 3 Apr 2016 18:08:02 +0200
Subject: [PATCH] Resolve #61 by revising mapping system

---
 lib/mappings.js         | 4 ++--
 lib/request-analyzer.js | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/mappings.js b/lib/mappings.js
index d368928..86178c1 100644
--- a/lib/mappings.js
+++ b/lib/mappings.js
@@ -83,14 +83,14 @@ var mappings = {
     // Microsoft Ajax CDN
     'ajax.aspnetcdn.com': {
         '/ajax/': {
-            'jQuery/jquery-{version}.': resources.jQuery,
+            'jquery/jquery-{version}.': resources.jQuery,
             'modernizr/modernizr-{version}.': resources.modernizr
         }
     },
     // Microsoft Ajax CDN [Deprecated]
     'ajax.microsoft.com': {
         '/ajax/': {
-            'jQuery/jquery-{version}.': resources.jQuery,
+            'jquery/jquery-{version}.': resources.jQuery,
             'modernizr/modernizr-{version}.': resources.modernizr
         }
     },
diff --git a/lib/request-analyzer.js b/lib/request-analyzer.js
index a9bc889..c0c11b7 100644
--- a/lib/request-analyzer.js
+++ b/lib/request-analyzer.js
@@ -130,7 +130,7 @@ function _findLocalTarget(resourceMappings, basePath, channelPath) {
 
     var resourcePath, versionNumber, resourcePattern;
 
-    resourcePath = channelPath.replace(basePath, '');
+    resourcePath = channelPath.replace(basePath, '').toLowerCase();
 
     versionNumber = resourcePath.match(VERSION_EXPRESSION);
     resourcePattern = resourcePath.replace(versionNumber, VERSION_PLACEHOLDER);
-- 
GitLab