Fuzzy parser fails if string starts with "p" in some cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Undecided
|
Unassigned |
Bug Description
Code like the following:
test_string = """p
This is a test with a date: Tuesday, September 25, 2012"""
date = parser.
returns something similar to this:
File "/home/
date = parser.
File "/home/
return DEFAULTPARSER.
File "/home/
res = self._parse(
File "/home/
Removing the newline then causes it to work:
event_info = """pThis is a test with a date: Tuesday, September 25, 2012"""
Other characters directly after the "p", such as a space, or ">", will also cause it to fail