Skip to content

Commit 93aea47

Browse files
author
Anar Azadaliyev
authored
Updated the regex (#1801) (#1834)
* Updated the regex (#1801) Updated the regex to properly pull the detection ID. Sometimes the detection ID changes in length, but it's always a number from 0-9 * add release notes
1 parent 8f57bca commit 93aea47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Scripts/script-CrowdStrikeUrlParse.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ script: |-
2323
match.group('detect')
2424
'''
2525
26-
match = re.search(r'detail\/(?P<aid>(\w{32}))\/(?P<detect>(\w{12}))', url)
26+
match = re.search(r'detail\/(?P<aid>(\w{32}))\/(?P<detect>([0-9]+))', url)
2727
aid = match.group('aid')
2828
detect = match.group('detect')
2929
@@ -77,3 +77,4 @@ outputs:
7777
description: Detection ID for CrowdStrike alert
7878
scripttarget: 0
7979
runonce: false
80+
releaseNotes: "Sometimes the detection ID changes in length, but it's always a number from 0-9"

0 commit comments

Comments
 (0)