LibRegex: Remove trailing newline from error_string()

This commit is contained in:
Linus Groh 2020-11-28 15:09:36 +00:00 committed by Andreas Kling
commit 7615649fdf
Notes: sideshowbarker 2024-07-19 01:13:23 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ String Regex<Parser>::error_string(Optional<String> message) const
for (size_t i = 0; i < parser_result.error_token.position(); ++i)
eb.append(" ");
eb.appendf("^---- %s\n", message.value_or(get_error_string(parser_result.error)).characters());
eb.appendf("^---- %s", message.value_or(get_error_string(parser_result.error)).characters());
return eb.build();
}