-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
Status: TriageThis is the initial status for an issue that requires triage.This is the initial status for an issue that requires triage.javascriptPull requests that update Javascript codePull requests that update Javascript code🐛 BugIndicates that the issue is a bug or defect.Indicates that the issue is a bug or defect.
Description
Describe the bug
getFindResultsByGlobalRegExp.ts still calls String.prototype.substr, which is deprecated in modern JavaScript/Node runtimes. Linters warn about it, and we risk future runtime compatibility issues.
Steps To Reproduce
- Open jsonSchemaLatest\website\lib\getFindResultsByGlobalRegExp.ts .
- Locate the calculation of inMatchGroupOffset .
- Run ESLint or TS with deprecation rules to see the warning.
Expected Behavior
Use a supported method such as slice so the helper stays lint-clean and future-proof.
Screenshots
no
Device Information [optional]
Are you working on this issue?
Yes
Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)
No
Metadata
Metadata
Assignees
Labels
Status: TriageThis is the initial status for an issue that requires triage.This is the initial status for an issue that requires triage.javascriptPull requests that update Javascript codePull requests that update Javascript code🐛 BugIndicates that the issue is a bug or defect.Indicates that the issue is a bug or defect.