Fix a potential error in the previous commit caused by the use of a separate index...
[jquery.git] / build.xml
index af0241a..f6650f4 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -76,6 +76,7 @@
                <exec executable="git" outputproperty="date">
                        <arg line="log -1 --pretty=format:%ad" />
                </exec>
+               <replaceregexp match="(\(\s*function\s*\(\s*jQuery\s*\)\s*\{)|(\}\s*\)\s*\(\s*jQuery\s*\)\s*;)" flags="g" replace="" file="${JQ}" />
                <replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
                <echo message="${JQ} built." />
        </target>