Subject: regexp-opt: does not optimize 'Abc' and 'abc'

From: Jari Aalto <[email-masked]>
Date: Sun, 29 Mar 2009 18:28:55 +0300

A)

    (regexp-opt
      '("Abc"
        "abc"))

    => "\\(?:[Aa]bc\\)"

B)

    (regexp-opt
      '("Abc"
        "def"
        "abc"))

    => "\\(?:Abc\\|abc\\|def\\)"

Shouldn't regexp-opt optimize B case as well?

Jari