Incorrect "variable was not properly terminated with regexp" error
If I do:
Liquid::Template.parse("{{ '{}' }}")
I get Liquid::SyntaxError: Liquid syntax error: Variable '{{ '{}' was not properly terminated with regexp: /\}\}/ which is not correct.
Tested on version 5.1.0.
Duplicate/Related https://github.com/Shopify/liquid/issues/1491
I also get an error with the string:
$$f = \frac{1}{2\pi\sqrt{LC}} => L = \frac{1}{{C(2\pi f)}^2}$$
$$f = \frac{1}{2\pi\sqrt{LC}} => L = \frac{1}{{C(2\pi f)}^2}$$
Error:
github-pages 227 | Error: Liquid syntax error (line 55): Variable '{{C(2\pi f)}' was not properly terminated with regexp: /}}/
Yup, this is a duplicate of https://github.com/Shopify/liquid/issues/1491