Skip to content

Commit ba87337

Browse files
committed
regex
1 parent e52f3af commit ba87337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/add-redirects.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}/'
8686
8787
# if redirect not already in file, add to string to add to PR description
88-
escaped_redirect=$(printf '%s\n' "$redirect" | sed 's/[.[\*^$()+?{}|\\]/\\&/g')
88+
escaped_redirect=$(printf '%s\n' "$redirect" | sed 's/[[*${}|\\]/\\&/g')
8989
if ! grep -qE "${escaped_redirect}$" "$REDIRECTS_FILE"; then
9090
deleted_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
9191
fi

0 commit comments

Comments
 (0)