summaryrefslogtreecommitdiff
path: root/scripts/roboto_data.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-01-08 11:39:29 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:25 -0700
commit14eecc2ca439557e4183722e07dab0308f3f18fe (patch)
tree261ccab359d4e889c501cf83e80e6db6f061e014 /scripts/roboto_data.py
parentcfa5c8e378eb1913c447236aab739febe2c6cc5d (diff)
Don't update font version in web target.
This is because web targets are from different cuts, and we want to keep the information.
Diffstat (limited to 'scripts/roboto_data.py')
-rw-r--r--scripts/roboto_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/roboto_data.py b/scripts/roboto_data.py
index 38d4d0c..922c464 100644
--- a/scripts/roboto_data.py
+++ b/scripts/roboto_data.py
@@ -23,7 +23,7 @@ def extract_weight_name(font_name):
"""Extracts the weight part of the name from a font name."""
match = re.search(_ALL_WEIGHTS_RE, font_name)
if match is None:
- assert font_name in ['Roboto Italic', 'Roboto Condensed Italic']
+ assert re.match('^Roboto(Draft)?( Condensed)? Italic$', font_name)
return 'Regular'
else:
return match.group(1)