Skip to content
This repository was archived by the owner on May 23, 2019. It is now read-only.
This repository was archived by the owner on May 23, 2019. It is now read-only.

Using escaped \ causes syntax error #109

@jithine

Description

@jithine

I am unable to use this string ' i am \ back slash' on a message. Getting this error

SyntaxError{message: 'Expected "\\#", "\\u", "\\{", "\\}", "{", [^{}\\\0-\x1F \t\n\r], end of input or whitespace but "\\" found.', expected: [Object{type: ..., value: ..., description: ...}, Object{type: ..., value: ..., description: ...}, Object{type: ..., value: ..., description: ...}, Object{type: ..., value: ..., description: ...}, Object{type: ..., value: ..., description: ...}, Object{type: ..., value: ..., description: ...}, Object{type: ..., description: ...}, Object{type: ..., description: ...}], found: '\', offset: 77, line: 1, column: 78, name: 'SyntaxError'}

My use case is to render a message which has back slash in it. How can I do this ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions