Skip to content

VM replaceAll with "^" RegExp doesn't work #2980

Closed
@nex3

Description

@nex3

Consider the following code:

   "foo\nbar\nbaz".replaceAll(const RegExp("^", multiLine: true), " ")

This is expected to return " foo\n bar\n baz". It does so in Frog, but in the VM it returns " foo\n bar\n baz". I'm not sure where the extra whitespace is coming from.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions