From d5db80918a8a90a2566a26955272511e5af02eac Mon Sep 17 00:00:00 2001 From: Phillip Gates-Idem Date: Fri, 15 May 2015 21:14:26 -0400 Subject: [PATCH] Fixes #48: Lasso.js should not mangle page bundle names --- lib/bundling-strategies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundling-strategies.js b/lib/bundling-strategies.js index 34c5d352..8ba871eb 100644 --- a/lib/bundling-strategies.js +++ b/lib/bundling-strategies.js @@ -4,7 +4,7 @@ module.exports = { 'default': function(options, config, bundleMappings, pageBundles) { var pageName = options.name || options.pageName; - var pageBundleName = pageName.replace(/^[^A-Za-z0-9_\-\.]*/g, ''); + var pageBundleName = pageName; var asyncPageBundleName = pageBundleName + '-async'; return { @@ -95,7 +95,7 @@ module.exports = { var BundleMappings = require('./BundleMappings'); var pageName = options.name || options.pageName; - var pageBundleName = pageName.replace(/^[^A-Za-z0-9_\-\.]*/g, ''); + var pageBundleName = pageName; var asyncPageBundleName = pageBundleName + '-async'; var pageBundleMappings = new BundleMappings(config, pageName);