adds a production, minified version

This commit is contained in:
2016-02-24 11:56:07 +01:00
parent e98765fbdb
commit c86e06fe23
3 changed files with 87 additions and 29 deletions

View File

@@ -6,11 +6,11 @@ services.factory('albumService',['$http','$log','$q', function($http,$log,$q) {
var removeSerie = /^\(.*\) .*$/;
function cleanupName(name) {
matches = name.match(determinantRegexp);
if (matches == null) {
var matchesStr = name.match(determinantRegexp);
if (matchesStr == null) {
return name;
}
return matches[2] + ' ' + matches[1];
return matchesStr[2] + ' ' + matchesStr[1];
}
function cleanupFields(album) {