Skip to content

🐛 Bug: Replace deprecated substr in getFindResultsByGlobalRegExp #1958

@PrateekSingh070

Description

@PrateekSingh070

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is the initial status for an issue that requires triage.javascriptPull requests that update Javascript code🐛 BugIndicates that the issue is a bug or defect.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions