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