Skip to content

Commit db2f768

Browse files
author
Sergio Moreno
committed
fix: Last scaped brackets were not unscaped
1 parent 087ec1f commit db2f768

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/macro/src/macroJs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { COMMENT, ID, MESSAGE, EXTRACT_MARK } from "./constants"
88

99
const keepSpaceRe = /(?:\\(?:\r\n|\r|\n))+\s+/g
1010
const keepNewLineRe = /(?:\r\n|\r|\n)+\s+/g
11-
const removeExtraScapedLiterals = /(?:\\(.))/
11+
const removeExtraScapedLiterals = /(?:\\(.))/g
1212

1313
function normalizeWhitespace(text) {
1414
return text.replace(keepSpaceRe, " ").replace(keepNewLineRe, "\n").trim()

0 commit comments

Comments
 (0)