Re: Comments on regex-opt

* 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 UTC