website
website copied to clipboard
🐛 Bug: Replace deprecated substr in getFindResultsByGlobalRegExp
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
@Utkarsh-123github assign this issue #1958 to me
@Utkarsh-123github i would like to work on this issue