Opened 11 years ago

Closed 11 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";

Change History (1)

comment:1 Changed 11 years ago by James Burke

Resolution: wontfix
Status: newclosed

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:

var defaultText = "dojo['provide'](\"some.module\");\n\n";

The regexps are not aware of the objectpropertyName? JavaScript? syntax.

Note: See TracTickets for help on using tickets.