Skip to content

Commit b8a00b6

Browse files
committed
Add a comment
1 parent 08ed408 commit b8a00b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/make-string.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @import {Quote} from "./get-preferred-quote.js" */
22

33
// Matches _any_ escape and unescaped quotes (both single and double).
4+
// Matching `\` in first group, so we won't treat `\\"` as escaped quote.
45
const REGEX = /\\(["'\\])|(["'])/gu;
56

67
/**

0 commit comments

Comments
 (0)