Skip to content

Instantly share code, notes, and snippets.

@mcculloughsean
Last active December 16, 2015 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcculloughsean/5374039 to your computer and use it in GitHub Desktop.
Save mcculloughsean/5374039 to your computer and use it in GitHub Desktop.
csr extended regex bug

Shows a regression with the extended coffee-script-redux regex syntax

// Generated by CoffeeScript 1.6.2
(function() {
var fileName;
fileName = 'foo/bar/baz.mustache';
fileName.match(/.+\/(.+)\..+\.mustache$/)[1];
}).call(this);
fileName = 'foo/bar/baz.mustache'
fileName.match(/// .+ / (.+) \. .+ \.mustache $ ///)[1]
// Generated by CoffeeScript 2.0.0-beta4
void function () {
var fileName;
fileName = 'foo/bar/baz.mustache';
fileName.match(/.+/(.+)\..+\.mustache$/)[1];
}.call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment