Lines Matching refs:match
92 match = YMD_MATCHER.match(line)
93 if match:
94 if match.group(1) == "year":
95 year = match.group(2)
96 elif match.group(1) == "month":
97 month = match.group(2)
98 elif match.group(1) == "day":
99 day = match.group(2)
101 match = YMD_LINE_MATCHER.match(line)
102 if match:
103 year, month, day = match.group(1), match.group(2), match.group(3)
131 if APACHE_MATCHER.match(line):
133 if MIT_MATCHER.match(line):
135 if BSD_MATCHER.match(line):
283 if not name and NAME_MATCHER.match(line):
284 name = NAME_MATCHER.match(line).group(1)
285 elif not version and VERSION_MATCHER.match(line):
286 version = VERSION_MATCHER.match(line).group(1)
287 elif not description and DESCRIPTION_MATCHER.match(line):
288 description = toml2json(DESCRIPTION_MATCHER.match(line).group(1))
289 elif not cargo_license and LICENSE_MATCHER.match(line):
290 cargo_license = LICENSE_MATCHER.match(line).group(1)