mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibRegex: Remove trailing newline from error_string()
This commit is contained in:
parent
ca8e5b0791
commit
7615649fdf
Notes:
sideshowbarker
2024-07-19 01:13:23 +09:00
Author: https://github.com/linusg
Commit: 7615649fdf
Pull-request: https://github.com/SerenityOS/serenity/pull/4200
2 changed files with 2 additions and 2 deletions
|
@ -1079,7 +1079,7 @@ TEST_CASE(error_message)
|
|||
char buf[1024];
|
||||
size_t buflen = 1024;
|
||||
auto len = regerror(0, ®ex, buf, buflen);
|
||||
String expected = "Error during parsing of regular expression:\n ^[A-Z0-9[a-z._%+-]{1,64}@[A-Za-z0-9-]{1,63}\\.{1,125}[A-Za-z]{2,63}$\n ^---- [ ] imbalance.\n";
|
||||
String expected = "Error during parsing of regular expression:\n ^[A-Z0-9[a-z._%+-]{1,64}@[A-Za-z0-9-]{1,63}\\.{1,125}[A-Za-z]{2,63}$\n ^---- [ ] imbalance.";
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
EXPECT_EQ(buf[i], expected[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue