Changeset 8072 for trunk/buildscripts

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

(merge from 0.4 branch) Fixes #2606. Forgot to escape regexp sensitive characters in the dependency string.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/buildscripts/buildUtil.js

    r7931 r8072  
    343343        //If we have a string for a regexp, do the dojo.require() and requireIf() removal now. 
    344344        if(depRegExpString){ 
     345                //Make to escape regexp-sensitive characters 
     346                depRegExpString = depRegExpString.replace(/([\.\*])/g, "\\$1"); 
     347                //Build the regexp 
    345348                var depRegExp = new RegExp("dojo\\.(require|requireIf)\\(.*?(" + depRegExpString + ")\\)(;?)", "g"); 
    346349                dojoContents = dojoContents.replace(depRegExp, "");