Skip to content

Commit

Permalink
bump messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maso7 committed Aug 15, 2024
1 parent ce7af1a commit f859c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ function formatMatchOutput(match, outputMaxChars) {
if (match.length === 0) {
match = "--- No matches found ---";
} else if (match.length > outputMaxChars) {
let truncationNotice = "\n--- Rest is truncated due to \"" + outputMaxChars + "\" chars limit ---";
let truncationNotice = "\n--- The rest of matches is truncated due to \"" + outputMaxChars + "\" chars limit ---";
match = match.substring(0, outputMaxChars - truncationNotice.length) + truncationNotice;
} else {
match += "\n--- End of Matches ---";
match += "\n--- The end of Matches ---";
}

return JSON.stringify(match);
Expand Down

0 comments on commit f859c5e

Please sign in to comment.