Skip to content

Files

Latest commit

 

History

History
21 lines (14 loc) · 411 Bytes

use_raw_strings.md

File metadata and controls

21 lines (14 loc) · 411 Bytes

Pattern: Missing use of raw string

Issue: -

Description

A raw string can be used to avoid escaping only backslashes and dollars.

Example of incorrect code:

var s = 'A string with only \\ and \$';

Example of correct code:

var s = r'A string with only \ and $';

Further Reading