Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow attribute substitution to handle variables containing non-word characters #7606

Merged
merged 3 commits into from Jul 14, 2023

Conversation

btheado
Copy link
Contributor

@btheado btheado commented Jul 14, 2023

Use the same regexp for attribute substitution (and the substitute filter operator) as is already used for textual substitution in macros. This change allows substitution to work for variable names containing spaces, dashes, and any character other than $ and ).

Fixes #7604.

Use the same regexp in wiki.getSubstitutedText as is used in
Widget.prototype.substituteVariableReferences. Fixes Jermolene#7604.
@vercel
Copy link

vercel bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Jul 14, 2023 2:39am

@Jermolene
Copy link
Owner

Thanks @btheado

@Jermolene Jermolene merged commit 8e9d8d4 into Jermolene:master Jul 14, 2023
4 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.

[BUG] Attribute substitution doesn't substitute variables whose names contain dashes
2 participants