Skip to content

Commit

Permalink
Address rabbit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gibber9809 committed Dec 16, 2024
1 parent 8508084 commit 1483c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/core/src/clp_s/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ class StringUtils {
* (e.g. \n) and less common control sequences with unicode escape sequences (e.g. \u001f). The
* '"' and '\' characters are escaped with a backslash.
*
* @param source
* @param destination
* @param source
*/
static void escape_json_string(std::string& destination, std::string_view const source);

Expand All @@ -245,7 +245,7 @@ class StringUtils {
*
* @param value
* @param unescaped
* @return true if the value was escaped succesfully and false otherwise.
* @return true if the value was unescaped successfully, false otherwise.
*/
static bool unescape_kql_value(std::string const& value, std::string& unescaped);

Expand Down Expand Up @@ -280,7 +280,7 @@ class StringUtils {
if ('\x00' <= nibble && nibble <= '\x09') {
return '0' + (nibble - '\x00');
} else {
return 'a' + (nibble - '\x10');
return 'a' + (nibble - '\x0a');
}
};

Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp_s/search/kql/Kql.g4
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ fragment SPECIAL_CHARACTER

// For unicode hex
fragment UNICODE: '\\u' HEXDIGIT HEXDIGIT HEXDIGIT HEXDIGIT ;
fragment HEXDIGIT: [0-9a-fA-F]+ ;
fragment HEXDIGIT: [0-9a-fA-F] ;

SPACE: [ \t\r\n] -> skip ;

0 comments on commit 1483c35

Please sign in to comment.