cinchapi / concourse

Distributed database warehouse for transactions, search and analytics across time.
http://concoursedb.com
Apache License 2.0
315 stars 234 forks source link

CaSH short syntax doesn't work for regex with parenthesis #463

Closed jtnelson closed 2 years ago

jtnelson commented 2 years ago
$ find "name nregex (?i:%jeff%)"
find "name nregex (?i:%jeff%)"
ERROR: No signature of method: ConcourseShell.find() is applicable for argument types: (java.lang.String) values: [name nregex (?i:%jeff%)]
Possible solutions: find(), find(groovy.lang.Closure), run(), run(), findAll(), any()

This happens because of the way that the short syntax expansion logic consider parenthesis to always mean a nested function invocation.

jtnelson commented 2 years ago

Fixed with https://github.com/cinchapi/concourse/commit/f813cd67ebd25c0895a7cb573e65ff8a1da0e759