Skip to content

Server uses deprecated substr() #8645

Closed
@cbaker6

Description

@cbaker6

New Issue Checklist

Issue Description

substr() has been deprecated by substring(), see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr.

Steps to reproduce

The deprecation shows when relevant files are opened in IDE's like VS Code

Actual Outcome

Deprecation warning

Expected Outcome

No deprecation warning

Environment

Server

  • Parse Server version: 6.2.0
  • Operating system: Linux
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): Postgres
  • Database version: 15
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): N/A
  • SDK version: N/A

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions