From 40ddfedda8fc628ee242047d52bc3e09da0dda03 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 24 May 2025 22:18:17 -0400 Subject: [PATCH 1/3] spelling: beginning Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/inet_escape_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet_escape_functions.cpp b/src/inet_escape_functions.cpp index 0be7481..1235b40 100644 --- a/src/inet_escape_functions.cpp +++ b/src/inet_escape_functions.cpp @@ -133,7 +133,7 @@ struct Matcher { auto input_data = input.GetData(); auto input_size = input.GetSize(); auto num_of_digits = input_size - i; // number of digits after i index - if (num_of_digits > 2 && input_data[i] == '&') { // the beggining of a match + if (num_of_digits > 2 && input_data[i] == '&') { // the beginning of a match if (input_data[i + 1] == '#') { if (input_data[i + 2] == 'x' || input_data[i + 2] == 'X') { if (num_of_digits == 3 || input_data[i + 3] == '&' || From f6ca7c8c0f7788d3795e24fead479ec2382df525 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 24 May 2025 22:56:38 -0400 Subject: [PATCH 2/3] spelling: control Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/inet_escape_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet_escape_functions.cpp b/src/inet_escape_functions.cpp index 1235b40..05e2af7 100644 --- a/src/inet_escape_functions.cpp +++ b/src/inet_escape_functions.cpp @@ -209,7 +209,7 @@ struct Matcher { OP::Operation("\\x9d", result); } else { throw InternalException( - "Tried to decode contol point %d, but it was not handled", num); + "Tried to decode control point %d, but it was not handled", num); } } return; From 37325479a445ba034d185a19e1ddea34f9bf99d1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 24 May 2025 22:18:40 -0400 Subject: [PATCH 3/3] spelling: invalid Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/inet_escape_functions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inet_escape_functions.cpp b/src/inet_escape_functions.cpp index 05e2af7..9954437 100644 --- a/src/inet_escape_functions.cpp +++ b/src/inet_escape_functions.cpp @@ -192,9 +192,9 @@ struct Matcher { } // special character references if (0x80 <= num && num <= 0x9f) { - auto invaid_charref = bind_data.special_invalid_charrefs.find(num); - if (invaid_charref != bind_data.special_invalid_charrefs.end()) { - auto ch = invaid_charref->second; + auto invalid_charref = bind_data.special_invalid_charrefs.find(num); + if (invalid_charref != bind_data.special_invalid_charrefs.end()) { + auto ch = invalid_charref->second; OP::Operation(ch, result); } else { // non printable control points if (num == 0x81) {