Skip to content
New issue

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

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

Already on GitHub? # to your account

$ in promt creates Error message #845

Open
rin-development opened this issue Feb 18, 2025 · 0 comments
Open

$ in promt creates Error message #845

rin-development opened this issue Feb 18, 2025 · 0 comments

Comments

@rin-development
Copy link

Issue: Parsing Error with $ in Tags in Dynamic Prompts

Description
When using a wildcard file containing references, I encountered a parsing error caused by $ characters in certain tags. Since $ is reserved in Dynamic Prompts for variable substitution, this results in a parsing error. For example,this issue arises when a LoRA creator includes a $ in the trigger tag, often to stylize a name (e.g., $tephanie instead of Stephanie). Since $ is reserved in Dynamic Prompts for variable substitution, this results in a parsing error.

Steps to Reproduce

  1. Use a wildcard file that includes references with $ in their tags.
  2. Include __your_wildcard__ in a prompt.
  3. Generate an image using Dynamic Prompts (preferrably using combinatorial, as this will always parse the line in question).

Expected Behavior

  • $ in tags should either be escaped properly or ignored by the parser to prevent a crash.

Question

Is there currently a way to escape the $ character in tags? If not, could this be implemented in a future update?

Thanks for your great work on this extension! 😊

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant