With the addition of --banner option index files may no longer start with '// @create-index'
This new regex looks for '// @create-index' that are either at the beginning of the file (old behavior) or if it is followed by a newline.
Basically it just checks whether it exists in a file or not.
With the addition of
--banner
option index files may no longer start with '// @create-index'This new regex looks for '// @create-index' that are either at the beginning of the file (old behavior) or if it is followed by a newline. Basically it just checks whether it exists in a file or not.
Also added a test
patch for #20