diff --git a/assets/scripts/App.js b/assets/scripts/App.js index c7cb35c..269042b 100644 --- a/assets/scripts/App.js +++ b/assets/scripts/App.js @@ -119,7 +119,7 @@ class App { let attr = options.module; // Splitting modules found in the data-attribute - let moduleIdents = attr.split(/,\s*|\s+/g); + let moduleIdents = attr.split(/[,\s]+/g); // Loop modules let j = 0; diff --git a/www/assets/scripts/app.js b/www/assets/scripts/app.js index 4e6d0a8..ad64f0a 100644 --- a/www/assets/scripts/app.js +++ b/www/assets/scripts/app.js @@ -144,7 +144,7 @@ var App = function () { var attr = options.module; // Splitting modules found in the data-attribute - var moduleIdents = attr.split(/,\s*|\s+/g); + var moduleIdents = attr.split(/[,\s]+/g); // Loop modules var j = 0;