Skip to content
Snippets Groups Projects
Commit cb8e9f7f authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Merge pull request #74 from jlaura/i73

Fixes #73
parents fdc9ed0d fc648764
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):
The serialized JSON string.
"""
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 = {}
def parse(fi):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment