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

Normalize token names but keep original ones #391

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

Toflar
Copy link
Member

@Toflar Toflar commented Jan 15, 2025

Alternative to #390.

In this PR we would not force the users to write ##form_e_mail##, they could still use ##form_e-mail##.
However, they still cannot use {if form_e-mail == ...} but will have to use {if form_e_mail == ...} because again, tokens in the expression language are not allowed to contain dashes.

@fritzmg
Copy link
Collaborator

fritzmg commented Jan 15, 2025

I also think we should go with this one. Personally I never have this issue as I normally do not create form field names with dashes in them (though customers might of course).

@fritzmg
Copy link
Collaborator

fritzmg commented Jan 15, 2025

May be @bildschirmartist can also provide additional feedback.

@Toflar Toflar merged commit 54878b4 into main Jan 16, 2025
26 checks passed
@Toflar Toflar deleted the fix/token-collection-for-parser branch January 16, 2025 09:17
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