mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Update JsShrink
external library.
Summary: It seems that there was a [[17cbfacae6
| recent-ish commit]] to the `JsShrink` external library. I'm not sure what this commit actually achieves, but we may as well bring it upstream.
Test Plan: Eyeball it.
Reviewers: vrana, epriestley, #blessed_reviewers
Reviewed By: epriestley, #blessed_reviewers
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D9414
This commit is contained in:
parent
0a534d1d1f
commit
dd796a44b6
1 changed files with 5 additions and 1 deletions
6
externals/JsShrink/jsShrink.php
vendored
6
externals/JsShrink/jsShrink.php
vendored
|
@ -13,7 +13,11 @@ function jsShrink($input) {
|
|||
(?:
|
||||
(^|[-+\([{}=,:;!%^&*|?~]|/(?![/*])|return|throw) # context before regexp
|
||||
(?:\s|//[^\n]*+\n|/\*(?:[^*]|\*(?!/))*+\*/)* # optional space
|
||||
(/(?![/*])(?:\\\\[^\n]|[^[\n/\\\\]|\[(?:\\\\[^\n]|[^]])++)+/) # regexp
|
||||
(/(?![/*])(?:
|
||||
\\\\[^\n]
|
||||
|[^[\n/\\\\]++
|
||||
|\[(?:\\\\[^\n]|[^]])++
|
||||
)+/) # regexp
|
||||
|(^
|
||||
|\'(?:\\\\.|[^\n\'\\\\])*\'
|
||||
|"(?:\\\\.|[^\n"\\\\])*"
|
||||
|
|
Loading…
Reference in a new issue