Ensure build tweaks are applied when new lines break up specific patterns.

Former-commit-id: 085a837521750457db9f20f3701984cba24a4f4f
This commit is contained in:
John-David Dalton
2012-08-14 02:36:55 -07:00
parent ebd16105f2
commit 47b51c22fa
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@
source = source.replace(/(\w)\["([^."]+)"\]/g, '$1.$2');
// correct AMD module definition for AMD build optimizers
source = source.replace(/("function")==(typeof define)&&\(?("object")==(typeof define\.amd)(&&define\.amd)\)?/, '$2==$1&&$4==$3$5');
source = source.replace(/("function")\s*==\s*(typeof define)\s*&&\s*\(?\s*("object")\s*==\s*(typeof define\.amd)\s*&&\s*(define\.amd)\s*\)?/, '$2==$1&&$4==$3&&$5');
// add license
source = license + '\n;' + source;