RegExp.test does store some state in the RegExp-Object (MDN: As with exec (or in combination with it), test called multiple times on the same global regular expression instance will advance past the previous match.), instead you probably want to use String.match.
I encountered this error when some of my coffee files weren't compiled. The order of all files tested was:
designer.jadeindex.jadecss\bootstrap-theme.csscss\bootstrap-theme.css.mapfonts\glyphicons-halflings-regular.eotfonts\glyphicons-halflings-regular.ttfcss\bootstrap.cssfonts\glyphicons-halflings-regular.woffimages\tree.pngfonts\glyphicons-halflings-regular.svgjs\doccookies.jsjs\bootstrap.jsjs\export_modules.jsscripts\animation.coffeescripts\flip_animation.coffeejs\jquery-2.1.1.min.jsscripts\animation_manager.coffeejs\query-string.jsscripts\forward_to_designer.coffeescripts\main.coffeescripts\prefixedCSS.coffeescripts\puzzle_desinger.coffeescripts\puzzle.coffeescripts\render_greetings.coffeescripts\unflip_animation.coffeescripts\tutorial.coffeescripts\word_wrap.coffeestyle\app.stylcss\bootstrap.css.mapjs\jquery-1.11.1.jsimages\tree2.pngimages\tree4.pngimages\tree3.png
Out of these
scripts\flip_animation.coffeescripts\main.coffeescripts\puzzle_desinger.coffeescripts\unflip_animation.coffeescripts\word_wrap.coffee
were not selected by the filter and in turn not compiled.
RegExp.test does store some state in the RegExp-Object (MDN: As with exec (or in combination with it), test called multiple times on the same global regular expression instance will advance past the previous match.), instead you probably want to use String.match.
I encountered this error when some of my coffee files weren't compiled. The order of all files tested was:
designer.jade
index.jade
css\bootstrap-theme.css
css\bootstrap-theme.css.map
fonts\glyphicons-halflings-regular.eot
fonts\glyphicons-halflings-regular.ttf
css\bootstrap.css
fonts\glyphicons-halflings-regular.woff
images\tree.png
fonts\glyphicons-halflings-regular.svg
js\doccookies.js
js\bootstrap.js
js\export_modules.js
scripts\animation.coffee
scripts\flip_animation.coffee
js\jquery-2.1.1.min.js
scripts\animation_manager.coffee
js\query-string.js
scripts\forward_to_designer.coffee
scripts\main.coffee
scripts\prefixedCSS.coffee
scripts\puzzle_desinger.coffee
scripts\puzzle.coffee
scripts\render_greetings.coffee
scripts\unflip_animation.coffee
scripts\tutorial.coffee
scripts\word_wrap.coffee
style\app.styl
css\bootstrap.css.map
js\jquery-1.11.1.js
images\tree2.png
images\tree4.png
images\tree3.png
Out of these
scripts\flip_animation.coffee
scripts\main.coffee
scripts\puzzle_desinger.coffee
scripts\unflip_animation.coffee
scripts\word_wrap.coffee
were not selected by the filter and in turn not compiled.