Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

docs navigation menu throws a script error on the Pale Moon browser

Open wolfbeast opened this issue 3 years ago • 0 comments

Documentation Is:

  • [ ] Missing or needed?
  • [ ] Confusing
  • [X] Not sure?

Please Explain in Detail...

Expanding categories in the left-hand menu of the docs on the website doesn't work.

Timestamp: 07/09/2022 13:24:31
Error: SyntaxError: invalid regexp group
Source File: [https://www.chartjs.org/docs/latest/ass ... e3ee75c.js](https://www.chartjs.org/docs/latest/assets/js/app.1e3ee75c.js)
Line: 26, Column: 249174
Source Code:
=o?"":o})}return e}}},function(e,n,t){t(9);const a=t(266),i=/^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-

It tries to use regex extensions which aren't supported in all browsers (?<major>0) Potentially this is a vue or webpack config issue as in what code to spit out? You may want to target ES2017 level for maximum compatibility.

Your Proposal for Changes

Don't use regex named capture groups.

Example

https://www.chartjs.org/docs/latest/

wolfbeast avatar Sep 07 '22 11:09 wolfbeast