Index: trunk/extensions/VisualEditor/tests/parser/dumpGrepPatterns/misc.txt |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | # A collection of misc interesting regexps |
3 | 3 | |
4 | | -# Multi-line ISBN links (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025) |
| 4 | +# ISBN links with at least one line break (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025) |
5 | 5 | (?:(?:RFC|PMID)[ \t\n\r\f]*[\n\f\r]+[ \t\n\r\f]*([0-9]+)|ISBN[ \t\n\r\f]*[\n\f\r]+[ \t\n\r\f]*(\b(?:97[89][ -]?)?(?:[0-9][ -]?){9}[0-9Xx]\b)) |
| 6 | + |
| 7 | +# ISBN links with at least two line breaks (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025) |
| 8 | +(?:(?:RFC|PMID)[ \t\n\r\f]*(?:[\n\f\r][ \t\n\r\f]*){2,}([0-9]+)|ISBN[ \t\n\r\f]*(?:[\n\f\r][ \t\n\r\f]*){2,}(\b(?:97[89][ -]?)?(?:[0-9][ -]?){9}[0-9Xx]\b)) |
Index: trunk/extensions/VisualEditor/tests/parser/dumpGrepper.js |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | flags += 'i'; |
58 | 58 | } |
59 | 59 | |
60 | | - var re = new RegExp( '(' + argv._[0] + ')', flags ); |
| 60 | + var re = new RegExp( argv._[0], flags ); |
61 | 61 | |
62 | 62 | var reader = new dumpReader.DumpReader(), |
63 | 63 | grepper = new DumpGrepper( re ); |