Bug 25375: Spelling fixes

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-09-23 09:06:11 -03:00
parent c86d7f632f
commit c20993b945
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 3 deletions

View File

@ -791,7 +791,7 @@ will have to wait for a real query parser.
sub _convert_index_strings_freeform {
my ( $self, $search ) = @_;
# @TODO: Currenty will alter also fields contained within quotes:
# @TODO: Currently will alter also fields contained within quotes:
# `searching for "stuff cn:123"` for example will become
# `searching for "stuff local-number:123"
#
@ -1028,9 +1028,9 @@ sub _query_regex_escape_process {
# Will escape unescaped slashes (/) while preserving
# unescaped slashes within quotes
# @TODO: assumes quotes are always balanced and will
# not handle escaped qoutes properly, should perhaps be
# not handle escaped quotes properly, should perhaps be
# replaced with a more general parser solution
# so that this function is ever only provided with unqouted
# so that this function is ever only provided with unquoted
# query parts
$query =~ s@(?:(?<!\\)((?:[\\]{2})*)(?=/))(?![^"]*"(?:[^"]*"[^"]*")*[^"]*$)@\\$1@g;
}