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

Update replace.js #95

Merged
merged 3 commits into from Apr 17, 2014
Merged

Update replace.js #95

merged 3 commits into from Apr 17, 2014

Conversation

airtonix
Copy link
Contributor

Skip evaluating files that result in no matches.

Bail out early if there are no matches, preventing an exception caused by applying an array object onto a null object.
properly count valid files. exit when all of them have been evaluated.
Fix incorrect reference to `modulePath`. By the time it is referenced, its parent object `file` has already been reassigned to a string.
@asciidisco
Copy link
Owner

Looks good to me.

asciidisco added a commit that referenced this pull request Apr 17, 2014
@asciidisco asciidisco merged commit 3418334 into asciidisco:master Apr 17, 2014
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.

None yet

2 participants