website icon indicating copy to clipboard operation
website copied to clipboard

🐛 Bug: Replace deprecated substr in getFindResultsByGlobalRegExp

Open PrateekSingh070 opened this issue 1 month ago • 1 comments

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

  1. Open jsonSchemaLatest\website\lib\getFindResultsByGlobalRegExp.ts .
  2. Locate the calculation of inMatchGroupOffset .
  3. 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

PrateekSingh070 avatar Nov 24 '25 21:11 PrateekSingh070

@Utkarsh-123github assign this issue #1958 to me

PrateekSingh070 avatar Nov 24 '25 21:11 PrateekSingh070

@Utkarsh-123github i would like to work on this issue

Adityakumar37 avatar Nov 27 '25 08:11 Adityakumar37