1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

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
parent ca8e5b0791
commit 7615649fdf
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();
}