8000 allow most kind of characters in number ranges · sharoonthomas/python-stdnum@96f4f7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 96f4f7c

Browse files
committed
allow most kind of characters in number ranges
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@60 9dea7c4f-944c-4273-ac1a-574ede026edc
1 parent 33611d1 commit 96f4f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdnum/numdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import re
5858
from pkg_resources import resource_stream
5959

60-
_line_re = re.compile('^(?P<indent> *)(?P<ranges>([0-9a-zA-Z]+(-[0-9a-zA-Z]+)?)(,[0-9a-zA-Z]+(-[0-9a-zA-Z]+)?)*) *(?P<props>.*)$')
60+
_line_re = re.compile('^(?P<indent> *)(?P<ranges>([^-,\s]+(-[^-,\s]+)?)(,[^-,\s]+(-[^-,\s]+)?)*)\s*(?P<props>.*)$')
6161
_prop_re = re.compile('(?P<prop>[0-9a-zA-Z-_]+)="(?P<value>[^"]*)"')
6262

6363
# this is a cache of open databases

0 commit comments

Comments
 (0)
0