W3C home > Mailing lists > Public > www-archive@w3.org > February 2007

Re: Comments on regex-opt

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 27 Feb 2007 14:51:26 +0100
To: Joel Yliluoma <bisqwit@iki.fi>
Cc: www-archive@w3.org
Message-ID: <fld8u2hn9336pf36fi0187gq4b94mnd1r2@hive.bjoern.hoehrmann.de>

* Bjoern Hoehrmann wrote:
>* Joel Yliluoma wrote:
>>Thank you for your feedback!
>
>The latest version gives
>
>  % regex-opt "2322332323"
>  2322
>
>which seems like a bug.

I just ran into another bug,

  % regex-opt '[\x00-\xFF]'
  [^]

The code that checks whether the flipped version is shorter than the
unflipped version needs to check whether the inverted class is empty.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 27 February 2007 13:51:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:18:02 GMT