|
106 | 106 | ('a.*b', 'acc\nccb', FAIL), |
107 | 107 | ('a.{4,5}b', 'acc\nccb', FAIL), |
108 | 108 | ('a.b', 'a\rb', SUCCEED, 'found', 'a\rb'), |
109 | | - ('a.b(?s)', 'a\nb', SUCCEED, 'found', 'a\nb'), |
110 | | - ('a.*(?s)b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'), |
| 109 | + ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'), |
| 110 | + ('(?s)a.*b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'), |
111 | 111 | ('(?s)a.{4,5}b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'), |
112 | 112 | ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'), |
113 | 113 |
|
|
563 | 563 | # Check odd placement of embedded pattern modifiers |
564 | 564 |
|
565 | 565 | # not an error under PCRE/PRE: |
566 | | - ('w(?i)', 'W', SUCCEED, 'found', 'W'), |
| 566 | + ('(?i)w', 'W', SUCCEED, 'found', 'W'), |
567 | 567 | # ('w(?i)', 'W', SYNTAX_ERROR), |
568 | 568 |
|
569 | 569 | # Comments using the x embedded pattern modifier |
|
627 | 627 | # bug 114033: nothing to repeat |
628 | 628 | (r'(x?)?', 'x', SUCCEED, 'found', 'x'), |
629 | 629 | # bug 115040: rescan if flags are modified inside pattern |
630 | | - (r' (?x)foo ', 'foo', SUCCEED, 'found', 'foo'), |
| 630 | + (r'(?x) foo ', 'foo', SUCCEED, 'found', 'foo'), |
631 | 631 | # bug 115618: negative lookahead |
632 | 632 | (r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'), |
633 | 633 | # bug 116251: character class bug |
|
0 commit comments