tastyigniter / TastyIgniter

:fire: Powerful, yet easy to use, open-source online ordering, table reservation and management system for restaurants
https://tastyigniter.com
MIT License
2.98k stars 976 forks source link

[Bug]: Editing mail templates JS error #948

Closed myrsk closed 2 years ago

myrsk commented 2 years ago

What happened?

When trying to edit email templates, it seems some buttons cant be clicked, and when checking browser console (in both safari and chrome), I can see a JS error

Uncaught SyntaxError: Invalid regular expression: / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'|*=*[^\s"'=<>]+)?/: Nothing to repeat`

This only happens on the templates, not on layout, and not on partial.

With this error, I can't edit the template, or change anything. I can't even click on the links in the left navbar.

What did you expect to happen?

I should be allowed to modify the template text.

Version

Other (please detail)

What browser are you seeing the problem on?

Chrome, Safari

Relevant log output

version 3.3.2
sampoyigi commented 2 years ago

I've tried so many attempts at reproducing this issue considering it has been reported several times, but still unable to reproduce it. I'll leave this issue open so anyone with the same issue can add more information that would help with reproducing the error.

sampoyigi commented 2 years ago

Fixed in v3.5+