Skip to content

fix(shmesa): allow parentheses to be treated literally in change - #1128

Open
AstroBarker wants to merge 2 commits into
mainfrom
blb/fix-shmesa-regex
Open

AstroBarker wants to merge 2 commits into
mainfrom
blb/fix-shmesa-regex

Conversation

@AstroBarker

Copy link
Copy Markdown
Contributor

Summary

This resolves #886 -- something like shmesa change inlist_main x_ctrl(1) 2 would not apply any changes. This was due to parentheses having special treatment in the regex produced. This change here wraps the search variable in perl magic to treat them literally. The change:

local search="^\s*\!*\s*\b${param}\b\s*=.*$"

to

local search="^\s*\!*\s*\Q${param}\E\s*=.*$"

I also cleaned up some space characters.

@AstroBarker AstroBarker added bug Something isn't working shmesa labels Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working shmesa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shmesa does not support user controls

1 participant