toml icon indicating copy to clipboard operation
toml copied to clipboard

Invalid parsing of raw string (regex) with toml

Open laurent-laporte-pro opened this issue 3 years ago • 0 comments

I am using toml v0.10.2 to parse the following toml file:

[section]
'foo' = [
    { search = '__date__ \s+ = \s+ "[^"]+"' }
]

The result is:

>>> toml.loads(text)
{'section': {'foo': []}}

I think it is a bug.

note 1: I use simple quotes to insert raw string.

note 2: I have no issue with pytoml

laurent-laporte-pro avatar May 18 '21 08:05 laurent-laporte-pro