Invalid RegularExpression causes failure on loading of script bundled with Spector.js on IOS <= 15
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, typescript
- Domain
- frontend
Research direction
The failing pattern is the .replace(/(?<!e.*)0+$/, "") call quoted in the issue; search the TypeScript sources for that trailing-zero stripping, since the payload names no file. Read the surrounding code to see what the e lookbehind is meant to protect, then find an equivalent expression that avoids lookbehind. Done when the pattern has no (?<! and existing number formatting output is unchanged, and the bundle loads on iOS 15 Safari.
Written by the indexing model from the issue text.
Description
The latest version of SpectorJS contains the following line
.replace(/(?<!e.*)0+$/, ""))
Lookbehinds (<!) are not supported in IOS 15 and lower.
This causes any scripts bundled with Spector.js to not load and throw an error
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 193
- Avg merge
- 12m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BabylonJS/Spector.js
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
BabylonJS/Spector.js#299 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
BabylonJS/Spector.js#277 · 5 comments ·
-
Save texture to fileOpen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
BabylonJS/Spector.js#184 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
BabylonJS/Spector.js#172 · 3 comments ·
-
Add Remote Device CaptureMay be free again @sebavan claimed this 3318 days ago, and no pull request is open. Openenhancement
BabylonJS/Spector.js#79 · 4 comments · 1 assignee ·
All issues in BabylonJS/Spector.js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day
-
Feature:Actions/ConnectorTypes Team:ResponseOps
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
elastic/kibana#309028 · 1 comment ·
Maintainers usually reply within 1 day
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day