summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdomllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/domllib.py b/domllib.py
index 7cae9cf..ee0b686 100755
--- a/domllib.py
+++ b/domllib.py
@@ -16,7 +16,7 @@ ESCAPES = {
't': '\t',
}
-RE_IDENT = re.compile(r'[A-Za-z0-9_]+')
+RE_IDENT = re.compile(r'[A-Za-z0-9_-]+')
RE_NUM = re.compile(
r'[+-]?(?:'
r'0x[0-9a-fA-F]+(?:_[0-9a-fA-F]+)*|'