We now refuse to start the server if a commentlink.match is so
badly malformed that the java.util.regex package can't parse the
expression. This should catch common errors caused by mismatched
braces or parens in the expression.
Clients now trap expression parse exceptions and try to filter out
the invalid patterns. Any exceptions are reported back to the
server in the server's error_log, so the site administrator can
take action and correct their server's configuration file. In the
mean time the patterns are removed from evaulation in the client,
so the site is at least still somewhat useful.
Bug: issue 389
Change-Id: I7df945acc42f74ba48a9e167fecdb20f102522c8
Signed-off-by: Shawn O. Pearce <sop@google.com>
Reviewed-by: Nico Sallembien <nsallembien@google.com>