CLI: Fix syntax matching in the 'files tagged' version of select.

This commit is contained in:
Jonathan Bernard 2016-03-29 16:46:44 -05:00
parent 3d6d51b5ce
commit 8ea88337b0

View File

@ -423,7 +423,7 @@ Configuration:
return selection.collectMany { library.getWhere(modelClass,
[(idKeyFor(selectionClass)): it.id]) }.findAll()
case ~/files tagged( as){0,1}((\s\w+)+)/:
case ~/files tagged( as){0,1}((\s[^\s]+)+)/:
selectedTags = Matcher.lastMatcher[0][2].split(/\s/)
.collect { it?.trim() }.findAll()
.collect { library.getTagByName(it) }.findAll()
@ -1337,6 +1337,7 @@ Library Management:
status.text = s }
else status.text = "${currentSelection.size()} " +
"${toEnglish(currentSelection[0].class)}s selected." }
else status.text = ""
return status.text }
}