-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Use consistent RegExp to detect copyright comments (#275)
Bundle Builder and AutoSplitter now use the same RegExp to detect copyrights that the uglifier task uses. Fixes https://github.com/SAP/ui5-builder/issues/257 .
- Loading branch information
1 parent
f27f903
commit bd7aa40
Showing
4 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
test/expected/build/sap.ui.core/preload/resources/sap/ui/core/some.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/*! | ||
* ${copyright} | ||
*/ | ||
console.log('HelloWorld'); | ||
console.log('HelloWorld'); | ||
|
||
/* | ||
* function add(c) - this is still not implemented. | ||
* @private | ||
* @param {Component} c | ||
* @name add | ||
* This comment should be removed in the preload bundle although it contains the magic | ||
* sequence "opening parenthesis - letter c - closing parenthesis" which usually indicates | ||
* a c o p y r i g h t comment. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/*! | ||
* ${copyright} | ||
*/ | ||
console.log('HelloWorld'); | ||
console.log('HelloWorld'); | ||
|
||
/* | ||
* function add(c) - this is still not implemented. | ||
* @private | ||
* @param {Component} c | ||
* @name add | ||
* This comment should be removed in the preload bundle although it contains the magic | ||
* sequence "opening parenthesis - letter c - closing parenthesis" which usually indicates | ||
* a c o p y r i g h t comment. | ||
*/ |