From dd796a44b6e3b62d46120c7074a1bfcf3e4db62f Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sat, 7 Jun 2014 11:26:20 -0700 Subject: [PATCH] Update `JsShrink` external library. Summary: It seems that there was a [[https://github.com/vrana/JsShrink/commit/17cbfacae67dede6d94d94ce92214c8ca31d858e | 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 --- externals/JsShrink/jsShrink.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/externals/JsShrink/jsShrink.php b/externals/JsShrink/jsShrink.php index 36f1c39335..239e6d7978 100644 --- a/externals/JsShrink/jsShrink.php +++ b/externals/JsShrink/jsShrink.php @@ -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"\\\\])*"