Skip to content

Commit dd796a4

Browse files
joshuaspenceepriestley
authored and
epriestley
committedJun 7, 2014
Update JsShrink external library.
Summary: It seems that there was a [[vrana/JsShrink@17cbfac | 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
1 parent 0a534d1 commit dd796a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎externals/JsShrink/jsShrink.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ function jsShrink($input) {
1313
(?:
1414
(^|[-+\([{}=,:;!%^&*|?~]|/(?![/*])|return|throw) # context before regexp
1515
(?:\s|//[^\n]*+\n|/\*(?:[^*]|\*(?!/))*+\*/)* # optional space
16-
(/(?![/*])(?:\\\\[^\n]|[^[\n/\\\\]|\[(?:\\\\[^\n]|[^]])++)+/) # regexp
16+
(/(?![/*])(?:
17+
\\\\[^\n]
18+
|[^[\n/\\\\]++
19+
|\[(?:\\\\[^\n]|[^]])++
20+
)+/) # regexp
1721
|(^
1822
|\'(?:\\\\.|[^\n\'\\\\])*\'
1923
|"(?:\\\\.|[^\n"\\\\])*"

0 commit comments

Comments
 (0)
Failed to load comments.