diff options
author | Anthon van der Neut <anthon@mnt.org> | 2016-09-05 09:26:11 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2016-09-05 09:26:11 +0200 |
commit | d044a672cb2824c47041c71ea53d56482517375e (patch) | |
tree | 11cae255b70cddc5a3cc44f3fb34aaf30dd8d469 /reader.py | |
parent | ba6758cdb4dcee9d0536646b414f42ee5de4fa4e (diff) | |
download | ruamel.yaml-d044a672cb2824c47041c71ea53d56482517375e.tar.gz |
ignore full range of specified characters0.12.8
Fix for issue #55, incorporating pull request #11 both by Harguroicha Hsu
Diffstat (limited to 'reader.py')
-rw-r--r-- | reader.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -145,7 +145,12 @@ class Reader(object): self.update(1) NON_PRINTABLE = re.compile( - u'[^\x09\x0A\x0D\x20-\x7E\x85\xA0-\uD7FF\uE000-\uFFFD\U00010000-\U0010FFFF]') + u'[^\x09\x0A\x0D\x20-\x7E\x85' + u'\xA0-\uD7FF' + u'\uE000-\uFFFD' + u'\U00010000-\U0010FFFF' + u']' + ) def check_printable(self, data): match = self.NON_PRINTABLE.search(data) |