js highlighting fails on certan strings and throwing an error
DemonLordDiablo opened this issue · comments
DemonLordDiablo commented
Information:
- Prism version: don't see sny version on the dl page but i downloaded it from there 2 days ago.
- Plugins: none
- Environment: browser
Description
when using prism.highlight on the string """""``"; it will throw the error cannot read properties of null (reading length) at object.tokenize at object.highlight.
that is 5 doubblequotes 2 backticks another doubblequote then a semicolon
seems you can put anything between the first 5 doubblequotes eccept for more doubblequotes and it will still give the same error.
Example
https://jsfiddle.net/kv2qcj90/1