Skip to content

Commit 43dc2af

Browse files
committed
small-bug-fix
1 parent 0fd850f commit 43dc2af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

translator/app/translator/platforms/logrhythm_axon/renders/logrhythm_axon_query.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __regex_to_str_list(self, value: Union[int, str]) -> list[list[str]]: # noq
7272
else:
7373
stack.append((value[index], False))
7474
if stack:
75-
value_groups.append("".join(element[0] for element in stack))
75+
value_groups.append("".join(element[0] for element in stack if element[0] != '\\' or element[-1] is True))
7676

7777
joined_components = []
7878
for value_group in value_groups:
@@ -82,9 +82,6 @@ def __regex_to_str_list(self, value: Union[int, str]) -> list[list[str]]: # noq
8282
if value_group[i] == "*" and i > 0 and value_group[i - 1] != "\\":
8383
inner_joined_components.append("".join(not_joined_components))
8484
not_joined_components = []
85-
elif value_group[i] == "|" or value_group[i] == "*" and value_group[i - 1] == "\\":
86-
not_joined_components.pop()
87-
not_joined_components.append(value_group[i])
8885
else:
8986
not_joined_components.append(value_group[i])
9087
inner_joined_components.append("".join(not_joined_components))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy