Skip to content

Fix sed command in telegram notifier#6501

Merged
neilpang merged 1 commit intoacmesh-official:devfrom
fuyufjh:patch-1
Sep 7, 2025
Merged

Fix sed command in telegram notifier#6501
neilpang merged 1 commit intoacmesh-official:devfrom
fuyufjh:patch-1

Conversation

@fuyufjh
Copy link
Contributor

@fuyufjh fuyufjh commented Sep 6, 2025

This PR fixes this error of regexp in the Telegram notifier:

root@iZj6c1k96itdh70xx6h5xxZ:~/.acme.sh# printf "%s" "$_subject" | sed 's/\([_*[()~`>#+--=|{}.!]\)/\\\\\1/g'
sed: -e expression #1, char 35: Invalid range end

I suppose the regexp attempts to escape all special characters, but the dash symbol - was not handled correctly, at least in my Linux server and Macbook

@github-actions
Copy link

github-actions bot commented Sep 6, 2025

Welcome
Please make sure you've read our Code-of-conduct and add the usage here: notify.
Then reply on this message, otherwise, your code will not be reviewed or merged.
We look forward to reviewing your Pull request shortly ✨

@neilpang neilpang merged commit 26d4bac into acmesh-official:dev Sep 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants