summaryrefslogtreecommitdiff
path: root/reader.py
diff options
context:
space:
mode:
author???? <haraguroicha@tipsy.coffee>2016-09-05 08:42:33 +0800
committer???? <haraguroicha@tipsy.coffee>2016-09-05 08:42:33 +0800
commitba6758cdb4dcee9d0536646b414f42ee5de4fa4e (patch)
tree2c9217250dad0f424276fe810f6b9bb0ca0d9daa /reader.py
parent94b5494cdfa25d90740d0a16710dab9d11538375 (diff)
downloadruamel.yaml-ba6758cdb4dcee9d0536646b414f42ee5de4fa4e.tar.gz
let NON_PRINTABLE RegEx match the spec
Diffstat (limited to 'reader.py')
-rw-r--r--reader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.py b/reader.py
index bbd58a9..1257f52 100644
--- a/reader.py
+++ b/reader.py
@@ -145,7 +145,7 @@ class Reader(object):
self.update(1)
NON_PRINTABLE = re.compile(
- u'[^\x09\x0A\x0D\x20-\x7E\x85\xA0-\uD7FF\uE000-\uFFFD]')
+ u'[^\x09\x0A\x0D\x20-\x7E\x85\xA0-\uD7FF\uE000-\uFFFD\U00010000-\U0010FFFF]')
def check_printable(self, data):
match = self.NON_PRINTABLE.search(data)