liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Does not replace if Bindings key is a numeric string

Open magiusdarrigo opened this issue 1 year ago • 0 comments

Checklist

  • [x] 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

magiusdarrigo avatar Aug 27 '24 21:08 magiusdarrigo