chartjs / chartjs/Chart.js

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

Open
#10,658 0 comments 0 reactions 0 assignees View on GitHub
type: documentation
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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=/^(?0|[1-9]\d*)\.(?0|[1-9]\d*)\.(?0|[1-
```
It tries to use regex extensions which aren't supported in all browsers (`?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/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.