On 02/10/2020 16:26, Joel Sherrill wrote:
Maybe we should change it to:def is_in_white_list(variant, white_list): if not white_list: return True for pattern in white_list: if re.match(pattern + "$", variant): return True return False Yes. That would seem to be more right. Should it have a ^ at the front?
No, for the re.match() you don't need the ^. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel