Skip to content

Commit 1b8e340

Browse files
author
Jiri Kruml
committed
LOG-12594 Make sed regex more robust
1 parent b16e857 commit 1b8e340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linux Script/configure-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ searchAndFetch() {
883883
# remove newline characters
884884
result=${result//$'\n'/}
885885

886-
id=$(echo "$result" | sed -E 's/.*"id": +"([0-9]+)".*/\1/g')
886+
id=$(echo "$result" | sed -E 's/.*"id"\s*:\s*"([^"]+)".*/\1/g')
887887

888888
url="$LOGGLY_ACCOUNT_URL/apiv2/events?rsid=$id"
889889

0 commit comments

Comments
 (0)