Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update stopped working with banner #22

Merged
merged 1 commit into from
Nov 30, 2016
Merged

Conversation

laggingreflex
Copy link
Contributor

@laggingreflex laggingreflex commented Nov 29, 2016

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

With the addition of `--banner` option index files 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.

Added a test for it now.

# Conflicts:
#	src/utilities/validateTargetDirectory.js
@laggingreflex
Copy link
Contributor Author

Rebased for conflicts. Although some (main) part of this was included in #24 which has been merged, this one now just include tests

@gajus gajus merged commit 5839536 into gajus:master Nov 30, 2016
@laggingreflex laggingreflex deleted the banner branch November 30, 2016 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants