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

parsing single-character variables fails #14

Closed
ClaasRostock opened this issue Jan 8, 2024 · 1 comment · Fixed by #15
Closed

parsing single-character variables fails #14

ClaasRostock opened this issue Jan 8, 2024 · 1 comment · Fixed by #15
Assignees

Comments

@ClaasRostock
Copy link
Collaborator

Single character variables in a dict, e.g. $a get not substituted by the value declared in a paramDict.
It seems as if this is in fact related to the variable having a single character only. I.e. variable $aa would work.
@frl000 : This is something we need to look into.

@ClaasRostock ClaasRostock self-assigned this Jan 9, 2024
@ClaasRostock
Copy link
Collaborator Author

Hi @frl000
Investigated and found the problem. Single character references are not correctly extracted from block_content.
Resason is the regex used to find them. All occurences of \$\w[\w\[\]]+ need to be replaced with \$\w[\w\[\]]*
(-> using * in regex instead of + ). I will open a PR with the necessary changes and send for your review.

@ClaasRostock ClaasRostock linked a pull request Jan 9, 2024 that will close this issue
2 tasks
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 a pull request may close this issue.

1 participant