mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
JsonParser: Merge the parsing of '\n' and '\r' in quoted strings
This commit is contained in:
parent
385e9268f4
commit
2923d39106
Notes:
sideshowbarker
2024-07-19 12:58:04 +09:00
Author: https://github.com/awesomekling
Commit: 2923d39106
1 changed files with 0 additions and 2 deletions
|
@ -67,8 +67,6 @@ String JsonParser::consume_quoted_string()
|
||||||
char escaped_ch = consume();
|
char escaped_ch = consume();
|
||||||
switch (escaped_ch) {
|
switch (escaped_ch) {
|
||||||
case 'n':
|
case 'n':
|
||||||
builder.append('\n');
|
|
||||||
break;
|
|
||||||
case 'r':
|
case 'r':
|
||||||
builder.append('\n');
|
builder.append('\n');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue