Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

Error in comment in a JS regex page #269

@pom421

Description

@pom421

Hello,

A small error on comment on this page in JS Regex :

    let A4 = "haaaah";
    let A3 = "haaah";
    let A100 = "h" + "a".repeat(100) + "h";
    let multipleHA = /a{3}h/;
    multipleHA.test(A4); // Returns false  // IT'S NOTRE FALSE, IT'S TRUE !!
    multipleHA.test(A3); // Returns true
    multipleHA.test(A100); // Returns false

I tried to make the PR myself, but I don't find where the source is (neither in https://github.com/freecodecamp/freecodecamp nor in https://github.com/freeCodeCamp/learn)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions