From 8ea88337b026b9e7d246dbdd7a42f96f39e244da Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Tue, 29 Mar 2016 16:46:44 -0500 Subject: [PATCH] CLI: Fix syntax matching in the 'files tagged' version of select. --- .../com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy index 8efcc85..8101cf5 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -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 } }