Skip to content

Fix for accounting for whitespaces #2

@Rudra17381

Description

@Rudra17381

toReturn.add(markdown.substring(openParen + 1, closeParen));

Output of the code here would be [https://something.com/, some-thing.html, This part breaks the program! How do we fix this?] When it should only be [https://something.com, some-thing.html]

Fix:
if (links.replaceAll(“\s+”, “”) == link) {
toReturn.add(link);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions