From 66af3abab3c23e8e1498e70f0fa32187186df6df Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Wed, 15 Oct 2008 22:25:26 +0000 Subject: [PATCH] JSMin.php : Added regexp bug workaround to docblock --- min/lib/JSMin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/min/lib/JSMin.php b/min/lib/JSMin.php index c0e6061..c3a1f3b 100644 --- a/min/lib/JSMin.php +++ b/min/lib/JSMin.php @@ -11,6 +11,11 @@ * comments that begin with "/*!" (for documentation purposes). In the latter case * newlines are inserted around the comment to enhance readability. * + * Known issue: regular expressions containing quote characters must be proceeded + * by one of the following characters: (,=:[!&|? + * E.g. JSMin will fail on the following: return /'/; + * The simple workaround is to wrap the expression in parenthesis: return (/'/); + * * PHP 5 or higher is required. * * Permission is hereby granted to use this version of the library under the