If you want use CQL to match a specific line in a multi-line file, you can utilize multi-line mode in Java regex with (?m)
. For instance, to check for line value n
in file x
, you could use the following query:
git.fileContents("x").matches("(?m)^n")
Comments
0 comments
Article is closed for comments.