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

Does not replace if Bindings key is a numeric string #92

Open
1 of 2 tasks
magiusdarrigo opened this issue Aug 27, 2024 · 0 comments
Open
1 of 2 tasks

Does not replace if Bindings key is a numeric string #92

magiusdarrigo opened this issue Aug 27, 2024 · 0 comments

Comments

@magiusdarrigo
Copy link
Contributor

magiusdarrigo commented Aug 27, 2024

Checklist

  • I have searched the issue list
  • I have tested my example against Shopify Liquid. (This isn't necessary if the actual behavior is a panic, or an error for which IsTemplateError returns false.)

Expected Behavior

Hello, Bob Orange!

Actual Behavior

Hello, 123!

Detailed Description

text := "Hello, {{ 123 }}!"
bindings := map[string]string{
    "123": "Bob Orange",
}
lqEngine.ParseAndRenderString(text, bindings)

Possible Solution

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

No branches or pull requests

1 participant