Skip to content

Variable pattern formats#18

Merged
nk9 merged 1 commit intonk9:mainfrom
deathaxe:pr/fix-variable-patterns
Apr 28, 2023
Merged

Variable pattern formats#18
nk9 merged 1 commit intonk9:mainfrom
deathaxe:pr/fix-variable-patterns

Conversation

@deathaxe
Copy link
Copy Markdown

Turn variable patterns into groups to avoid global flag (?x) effecting in unintentional ways the whole pattern the variables are used in.

see: 55bcccd#r110738904

Turn variable patterns into groups to avoid global flag `(?x)`
effecting in unintentional ways the whole pattern the variables are
used in.
@nk9
Copy link
Copy Markdown
Owner

nk9 commented Apr 27, 2023

I'm still seeing the same behavior when I use this format. It's not matching the setting/function names anymore. Same behavior on 4143 and 4148.

image

Does this actually work for you?

@nk9
Copy link
Copy Markdown
Owner

nk9 commented Apr 27, 2023

Aaaaah, I see what's wrong. I was missing the YAML strip chomping indicator. So without the separate (?x), the newline was being included in the required pattern. We seem to have come full circle! 😄 Will adjust this, thanks!

@nk9 nk9 merged commit 85d0257 into nk9:main Apr 28, 2023
nk9 added a commit that referenced this pull request Apr 28, 2023
@deathaxe deathaxe deleted the pr/fix-variable-patterns branch April 28, 2023 15:14
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