mathjax / MathJax-src

MathJax source code for version 3 and beyond
https://www.mathjax.org/
Apache License 2.0
2.05k stars 205 forks source link

Remove superfluous slashes in reg exps #1134

Open zorkow opened 6 days ago

zorkow commented 6 days ago

Remove superfluous slashes from all regular expressions. There is still one bizarre escape character error here:

ts/input/mathml/mml3/mml3.ts:691:13: Unnecessary escape character: \<. [Error/no-useless-escape]
dpvc commented 6 days ago

There is still one bizarre escape character error here

That should probably be \\ rather than just \, as it is in a sting literal.

zorkow commented 6 days ago

Looks good. I think making the \ into \\ will fix the other message.

Turns out that the entire case does not work. See PR #1136 for a fix.