Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
could you please consider fix for issue #27.
It is caused by the recent #23 commit which uses a regexp against the modified filename to determine which files are supported to be shown by the browser.
The original commit converted the modified file's
Path
into anio/file
for convenience and then extracted the filename as aString
, but thePath
toio/file
conversion fails on OS X throwing an exception (as shown at the end).The fix is to retrieve the filename string from the
Path
directly.Also, it might be a good idea to have
clerk/file-event
try
andcatch
any exception thrown instead of silently failing?error thrown: (is this a bug?)
(Tested it to work on both OS X and MS Windows)
Thanks!