Skip to content

Commit 4b3a419

Browse files
committed
just use quoteWithBackticks
1 parent 70dfa6e commit 4b3a419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ private void doExtract(FileExtractor extractor, Path file, ExtractorState state)
12361236
if (!extractor.getConfig().isExterns()) seenFiles = true;
12371237
List<ParseError> errors = loc == null ? Collections.emptyList() : loc.getParseErrors();
12381238
for (ParseError err : errors) {
1239-
String msg = "A parse error occurred: " + StringUtil.quoteWithBackticks(StringUtil.escapeMarkdown(err.getMessage()).trim())
1239+
String msg = "A parse error occurred: " + StringUtil.quoteWithBackticks(err.getMessage().trim())
12401240
+ ". Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.";
12411241
// file, relative to the source root
12421242
String relativeFilePath = null;

0 commit comments

Comments
 (0)