W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2015

[Bug 29253] [XQ3TS] fn-matches-50

From: <bugzilla@jessica.w3.org>
Date: Wed, 04 Nov 2015 11:14:03 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29253-523-MawGWXfHmL@http.www.w3.org/Bugs/Public/>

--- Comment #4 from Tim Mills <tim@cbcl.co.uk> ---
As a bit of background, we were formerly passing these tests due to a bug in
our regex implementation. 

e.g.  (\w)?(abc)\1b  matching against "abcab"

It first attempted to match (\w)? to 'a', setting \1 = 'a', but then failed to
match 'abc' to 'bca'.  Then it backtracked, but forgot to clear the capture

So it matched

(\w)? -> matches empty string, but reported \1 as 'a'
'abc' -> matches 'abc'
\1 -> matches the incorrect capture of 'a'.
'b' -> matches 'b'

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 4 November 2015 11:14:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:56 UTC