Aunsiels / pyformlang

A python library to manipulate formal languages and various automata
https://pypi.org/project/pyformlang/
MIT License
45 stars 10 forks source link

Bug in PythonRegex if you use an escaped dot #18

Closed marcotcr closed 1 year ago

marcotcr commented 1 year ago

The following code throws an error:

import pyformlang
import pyformlang.regular_expression
r = pyformlang.regular_expression.PythonRegex('\\.')

This pull request fixes it

Aunsiels commented 1 year ago

Thanks again for your contribution! I will add a new test.