triegex icon indicating copy to clipboard operation
triegex copied to clipboard

Issue with added c++ as keyword

Open vi3k6i5 opened this issue 6 years ago • 1 comments

Thanks for the library, will definitely try it out:

I am facing a simple issue meanwhile:

t = Triegex('foo', 'bar', 'baz')

t.to_regex()

t.add('c++')

'spam' in t

import re

re.findall(t.to_regex(), 'c++')

Full stack trace is too long, sharing last part of it here

    639             if item[0][0] in _REPEATCODES:
    640                 raise source.error("multiple repeat",
--> 641                                    source.tell() - here + len(this))
    642             if sourcematch("?"):
    643                 subpattern[-1] = (MIN_REPEAT, (min, max, item))

error: multiple repeat at position 19

vi3k6i5 avatar Dec 12 '17 15:12 vi3k6i5