Closed jordanbtucker closed 10 years ago
Exceptional. Thank you, @jordanbtucker! And also thanks for the jsperf. Will test, merge, and publish in a few minutes.
Published as v0.10.4 :+1:
I forgot to write a test case for this. Does Preview actually run any tests besides the one in preview-spec.coffee?
Not yet; @ddavison is working on that for #17.
eventually that will be a requirement, and listed within the contribution guidelines
I'm looking forward to having Travis CI testing Pull Requests and a complete Testing framework to verify up our non-breaking changes. It will definitely become a requirement for contributors. I think we could have a more open-ended test for renderers, such that it would run through a directory (supported_samples/
) of source code files and pass them to the Previewing engine with the text
, filepath
, and grammar
. With that in mind, in your case, @jordanbtucker, you would not even have a test to write :+1:.
Ignore case so that
.djs
,.DJS
, and.Djs
all work.Also, no need to match entire string, just the end. See http://jsperf.com/regex-match-all-or-end-only regarding performance gains.