question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarification required on more than three repetitions

See original GitHub issue

Challenge reuse-patterns-using-capture-groups has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0. Please describe how to reproduce this issue, and include links to screenshots if possible.

I have some clarification issue.

There is some test case

Your regex should not match "42 42 42 42".

which passes when my regular expression matches this string, which is an obvious bug.

Also, behaviour for extra characters around the number that’s repeated twice (like a fourth copy) is not specified in the task description, so should “12 2 23” or “42 42 42 42” match?

let repeatNum = "42 42 42 42";
let reRegex = /^(\d+)\s\1\s\1$/; // Change this line
let result = reRegex.test(repeatNum);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dakshshah96commented, Jun 27, 2017

@erictleung Made the change here: #15515

0reactions
erictleungcommented, Jun 23, 2017

@dakshshah96 yes, that’d be great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clarifying What You Heard, Asking for Repetition, and ...
Learn how to clarify what you heard, ask people to repeat themselves, and confirm your understanding in American English.
Read more >
Clarification - Communication Skills | SkillsYouNeed
In communication, clarification involves offering back to the speaker the essential meaning, as understood by the listener, of what they have just said....
Read more >
Regular expression for no more than two repeated letters/digits
In response to a clarification, it seems that a single regular expression isn't strictly required. In that case ...
Read more >
How to Ask for Clarification - VOA Learning English
This is different from asking a person to repeat something. The person might not have explained themselves clearly, for example.
Read more >
Clarification of Support vs. Cueing and Prompting Terms
If repeated more than once, the teacher will need to specify the number of additional repetitions and list them as a support. Repetitions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found