jrburke/backbone — comment on commit 57c2029117649452c6cf4d3337e03f5d52bb8331
File: backbone.js line 27
By jdalton:

This all seems pretty brittle, the current scan in RequireJS attempts to remove comments, but leaves strings and regexps that might cause a false positive and uses a pretty simple regexp to match `require(...)` calls which will miss non-string arguments or strings that concat with variables or strings with escaped quotes or calls with a space between `require` and `(...)`.