Changeset 8071

Show
Ignore:
Timestamp:
04/12/07 10:49:41 (20 months ago)
Author:
jburke
Message:

Fixes #2606. Forgot to escape regexp sensitive characters in the dependency string.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/buildscripts/buildUtil.js

    r7930 r8071  
    337337        //If we have a string for a regexp, do the dojo.require() and requireIf() removal now. 
    338338        if(depRegExpString){ 
     339                //Make to escape regexp-sensitive characters 
     340                depRegExpString = depRegExpString.replace(/([\.\*])/g, "\\$1"); 
     341                //Build the regexp 
    339342                var depRegExp = new RegExp("dojo\\.(require|requireIf)\\(.*?(" + depRegExpString + ")\\)(;?)", "g"); 
    340343                dojoContents = dojoContents.replace(depRegExp, "");