Skip to content
Snippets Groups Projects
Commit fc648764 authored by jay's avatar jay
Browse files

Fixes #73

parent fdc9ed0d
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ def socetset_keywords_to_json(keywords, ell=None): ...@@ -22,7 +22,7 @@ def socetset_keywords_to_json(keywords, ell=None):
The serialized JSON string. The serialized JSON string.
""" """
matcher = re.compile(r'\b(?!\d)\w+\b') matcher = re.compile(r'\b(?!\d)\w+\b')
numeric_matcher = re.compile(r'\W-?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?') numeric_matcher = re.compile(r'\W?-?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?')
stream = {} stream = {}
def parse(fi): def parse(fi):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment