Skip to content

Commit 4b7e8b4

Browse files
Update to alpha num
1 parent d382c06 commit 4b7e8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

detection_rules/rule_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ def extract_error_field(source: str, exc: eql.EqlParseError | kql.KqlParseError,
937937
start: int = exc.column # type: ignore[reportUnknownMemberType]
938938
# Handle cases where subqueries cause column alignment to be off
939939
for _ in range(max_attempts):
940-
if line[start - 1] != " ":
941-
start -= 1 # type: ignore[reportUnknownMemberType]
940+
if line[start - 1].isalnum() or line[start - 1] == ".": # type: ignore[reportUnknownMemberType]
941+
start -= 1 # type: ignore[reportUnknownMemberType]
942942
else:
943943
break
944944
stop = start + len(exc.caret.strip()) # type: ignore[reportUnknownVariableType]

0 commit comments

Comments
 (0)