From e0d33a866133eeda8b19dd22fd5c3fe8ea45ec4d Mon Sep 17 00:00:00 2001 From: kwantam Date: Thu, 16 Apr 2015 16:11:04 -0400 Subject: [PATCH] make load_properties() tolerate whitespace This commit imports update to regexes in `load_properties()`, d25c39f86568a147f9b7080c25711fb1f98f056a in rust-lang/regex Does not result in any changes to tables.rs, but could if published tables are updated in the future. --- scripts/unicode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/unicode.py b/scripts/unicode.py index c02310f..628fc4c 100755 --- a/scripts/unicode.py +++ b/scripts/unicode.py @@ -172,8 +172,8 @@ def format_table_content(f, content, indent): def load_properties(f, interestingprops): fetch(f) props = {} - re1 = re.compile("^([0-9A-F]+) +; (\w+)") - re2 = re.compile("^([0-9A-F]+)\.\.([0-9A-F]+) +; (\w+)") + re1 = re.compile("^ *([0-9A-F]+) *; *(\w+)") + re2 = re.compile("^ *([0-9A-F]+)\.\.([0-9A-F]+) *; *(\w+)") for line in fileinput.input(os.path.basename(f)): prop = None