Skip to content

Update how nextLink value is retrieved #2901

@RubenCerna2079

Description

@RubenCerna2079

Currently the nextLink/after value is retrieved by removing the brackets and saving the contents. However, it is done by assuming that the brackets are in the first and last positions of the string. We need to update it to ensure that we do not delete any relevant information in case the brackets are not there.

Solutions:

  1. Using IndexOf and LastIndexOf functions to check if the brackets exist and use their positions to delete them with regex (Similar to the way that it is done now)
  2. Using only regex to only use the information found inside the brackets if they exist.

This task is made in reference to the following comment:
#2893 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions