Skip to content

String.replaceFirst is not escaping dollar sign of replacement text #914

@DartBot

Description

@DartBot

This issue was originally filed by mattsh@google.com


I have this program:

void main() {
  print("one two three".replaceFirst("two", @­"Seattle $' Portland"));
}

On dart vm, this prints (which is what is expected):
one Seattle $' Portland three

On frog, this prints:
one Seattle three Portland three

(The problem I think is related to the interpretation of $' by javascript's replace function.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-obsoleteClosed as the reported issue is no longer relevant

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions