ref: 1930f35933654d02234249b8c9b8c0d1c8c9fb6b
parent: 1b5cc3a0821aba5224b812d2cc4a9923fa0ea09c
author: Tor Andersson <tor.andersson@artifex.com>
date: Wed May 4 08:13:50 EDT 2016
Fix \s and \S ranges in regular expression.
--- a/regexp.c
+++ b/regexp.c
@@ -212,8 +212,7 @@
static void addranges_s(struct cstate *g)
{
- addrange(g, 0x9, 0x9);
- addrange(g, 0xA, 0xD);
+ addrange(g, 0x9, 0xD);
addrange(g, 0x20, 0x20);
addrange(g, 0xA0, 0xA0);
addrange(g, 0x2028, 0x2029);
@@ -223,7 +222,6 @@
static void addranges_S(struct cstate *g)
{
addrange(g, 0, 0x9-1);
- addrange(g, 0x9+1, 0xA-1);
addrange(g, 0xD+1, 0x20-1);
addrange(g, 0x20+1, 0xA0-1);
addrange(g, 0xA0+1, 0x2028-1);