Skip to content

Files

Latest commit

 

History

History
25 lines (16 loc) · 368 Bytes

unnecessary_raw_strings.md

File metadata and controls

25 lines (16 loc) · 368 Bytes

Pattern: Unnecessary raw string

Issue: -

Description

Use raw string only when needed.

Example of incorrect code:

var s1 = r'a';

Example of correct code:

var s1 = 'a';
var s2 = r'$a';
var s3 = r'\a';

Further Reading