jrburke/r.js — pull request #49 by jwhitley (2011-12-02 19:09:04+00:00)
Title: Allow fileExclusionRegExp to accept a string as well as a JS regexp.

The r.js config format is *almost* valid JSON, except for `fileExclusionRegExp`. This change will initialize a new `RegExp` object using a string passed in `fileExclusionRegExp`. This is particularly useful for ease of config generation from other languages such as Ruby, where the original config can then be represented with native data structures (hash, array, strings) then emitted with JSON tooling.

Caveats: it doesn't appear that the current test harness covers fileExclusionRegExp. Likewise, it's unclear whether the harness is well suited to testing that at this time. Suggestions on crossing the test gap would be appreciated, otherwise I may just throw something together and kick out a pull request...