Closed jakobwesthoff closed 10 years ago
Thanks for the bug report. Turned out to be a bug with levn, and it is now fixed. Levn is used in optionator, which Grasp uses for option parsing, so I'll bump up all the versions before the next release so it is fixed.
Grasp 0.2.0 was released today http://graspjs.com/blog/2013/12/17/grasp-0.2.0-released/ which fixes this bug.
Also, the @prop
syntax was removed. You can do the search you were doing previously simply as:
prop.key:not(String)
If the replacement feature is used and the replacement is surrounded by qoutes (single or double), those quotes are not used as part of the replacement, but are ignored.
Example
Take the following is the input file:
grasp is supposed to be used to ensure every
key
in this code example is encapsulated in double quotes. The following command is therefore issued:Problem the replacement is identical to the input, as the surrounding doubles quotes are ignored.
Doubling the quotes issues the correct result: