Commit 27447a4
committed
fix(utils): treat empty-string pattern like empty list in match_regex_list
Address review feedback: an empty string in regex_list represents a
typo/mistake and should be treated as if [] was passed, returning False
rather than matching every item. Fold the regression case into the
parameterized test_match_regex_list cases and drop the redundant
standalone test.1 parent d42a94a commit 27447a4
2 files changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
1744 | 1747 | | |
1745 | 1748 | | |
1746 | 1749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | 566 | | |
574 | 567 | | |
575 | 568 | | |
| |||
0 commit comments