Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

\r not escaped correctly in map literal #227

Closed
@jmesserly

Description

@jmesserly

from package:matcher/src/util.dart:

/// A [Map] between whitespace characters and their escape sequences.
const _escapeMap = const {
  '\n': r'\n',
  '\r': r'\r',
  '\f': r'\f',
  '\b': r'\b',
  '\t': r'\t',
  '\v': r'\v',
  '\x7F': r'\x7F', // delete

generates approximately this...

  let _escapeMap = dart.const(dart.map({'\n': '\\n', '
': '\\r', '': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '�': '\\x7F'}));

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions