diff --git a/js/tests/ecma_2/RegExp/multiline-001.js b/js/tests/ecma_2/RegExp/multiline-001.js index 2c3286a8f91..bd680a9efe2 100644 --- a/js/tests/ecma_2/RegExp/multiline-001.js +++ b/js/tests/ecma_2/RegExp/multiline-001.js @@ -16,9 +16,9 @@ var woodpeckers = "ivory-billed\ndowny\nhairy\nacorn\nyellow-bellied sapsucker\n" + "northern flicker\npileated\n"; - AddRegExpCases( /[d]$/g, woodpeckers, woodpeckers.indexOf("ivory-billed"), ["ivory-billed"] ); + AddRegExpCases( /.*[y]$/m, woodpeckers, woodpeckers.indexOf("downy"), ["downy"] ); - AddRegExpCases( /[d]$/m, woodpeckers, woodpeckers.indexOf("ivory-billed"), ["ivory-billed"] ); + AddRegExpCases( /.*[d]$/m, woodpeckers, woodpeckers.indexOf("ivory-billed"), ["ivory-billed"] ); test();