Skip to content

Commit f2110cd

Browse files
lukesandbergcopybara-github
authored andcommitted
Fix an escaping issue in the compiler with --input_delimiter processing
PiperOrigin-RevId: 501963648
1 parent 72cf1e2 commit f2110cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/com/google/javascript/jscomp/Compiler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
import java.util.function.Supplier;
117117
import java.util.logging.Level;
118118
import java.util.logging.Logger;
119-
import java.util.regex.Matcher;
120119
import java.util.stream.Collectors;
121120
import java.util.stream.Stream;
122121
import org.jspecify.nullness.Nullable;
@@ -2452,7 +2451,7 @@ public void toSource(
24522451

24532452
delimiter =
24542453
delimiter
2455-
.replace("%name%", Matcher.quoteReplacement(inputName))
2454+
.replace("%name%", inputName)
24562455
.replace("%num%", String.valueOf(inputSeqNum))
24572456
.replace("%n%", "\n");
24582457

0 commit comments

Comments
 (0)