Closed viable-hartman closed 1 year ago
tinymce.min.js contains the following Javascript:
return/^[^:]+:\/\/\/?[^\/]+\//.test(t)
JSShrink does not call the saveRegex method for this Javascript string as it is not a recognized RegEx starting point.
By adding "n" to the strpos test before the saveRegex call, the return/RegEx/ situation is properly handled. In the above case.
return/RegEx/
When it is not properly handled, the \//.test(t) part of the RegEx is treated as a comment and is improperly truncated for tineymce.min.js.
\//.test(t)
This project has recently upgraded its test suite to work with Github Actions and PHPUnit 10. If you are still interested in this PR please rebase and open a new PR. Thanks!
tinymce.min.js contains the following Javascript:
JSShrink does not call the saveRegex method for this Javascript string as it is not a recognized RegEx starting point.
By adding "n" to the strpos test before the saveRegex call, the
return/RegEx/
situation is properly handled. In the above case.When it is not properly handled, the
\//.test(t)
part of the RegEx is treated as a comment and is improperly truncated for tineymce.min.js.