Opened 14 years ago
Closed 14 years ago
#6860 closed defect (wontfix)
A string containing "dojo.provide" causes the build system to throw an "illegal character" error
Reported by: | guest | Owned by: | James Burke |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | BuildSystem | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When building a file with "dojo.provide" in a string, it causes the script to throw an "illegal character" error.
An example:
var defaultText = "dojo.provide(\"some.module\");\n\n";
A workaround to the problem:
var defaultText = "dojo"+".provide(\"some.module\");\n\n";
Note: See
TracTickets for help on using
tickets.
I appreciate this can cause issues, but there are no plans to expand the complexity of the regexps used to find module dependencies (like dojo.provide/require) by ignoring string usage. Another way to avoid the problem:
The regexps are not aware of the objectpropertyName? JavaScript? syntax.