Code style adjustment

This commit is contained in:
Tobias Reich 2016-01-31 17:51:17 +01:00
parent f650de8967
commit 83e3271f43

View File

@ -553,7 +553,7 @@ photo.editTags = function(photoIDs) {
photo.setTags = function(photoIDs, tags) {
if (!photoIDs) return false
if (photoIDs instanceof Array===false) photoIDs = [photoIDs]
if (photoIDs instanceof Array===false) photoIDs = [ photoIDs ]
// Parse tags
tags = tags.replace(/(\ ,\ )|(\ ,)|(,\ )|(,{1,}\ {0,})|(,$|^,)/g, ',')