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.

duplicate matches in one sentence

See original GitHub issue

Example 1:

wtf('[[Page 1]], [[Page 1]]').sentences(0).html()

Result:

<span class="sentence"><a class="link" href="./Page_1"><a class="link" href="./Page_1">Page 1</a></a>, Page 1</span>

Expected Result:

<span class="sentence"><a class="link" href="./Page_1">Page 1</a>, <a class="link" href="./Page_1">Page 1</a></span>

Example 2:

wtf('Just click on here: [[Page 1|here]] or [[Page 2|here]]').sentences(0).html()

Result:

<span class="sentence">Just click on <a class="link" href="./Page_1"><a class="link" href="./Page_2">here</a></a>: here or here</span>

Expected Result:

<span class="sentence">Just click on here: <a class="link" href="./Page_1">here</a> or <a class="link" href="./Page_2">here</a></span>

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
spencermountaincommented, Aug 23, 2019

whoa! thank you Robin. That certainly looks like a bug!

I’ll look at fixing it this week. thank you for point it out.

same thing for markdown and latex output, too. 😬

0reactions
spencermountaincommented, Sep 4, 2019

hey cool! thank you for making that. Sometimes it’s so much easier just to checkout a javascript file, and be like ‘ooh, right’. Yeah, i share your concerns about the __CITE_98732__ thing. I’m a little swamped right now, but am planning on taking some big swipes at this library this fall/winter. Wanna join me?

Read more comments on GitHub >

github_iconTop Results From Across the Web

regex - How do you match duplicate values on multiple lines?
A matched line must have "Starting" in it, yes, but the timestamps must also be the same for each line. There should only...
Read more >
Duplicate Definition & Meaning - Merriam-Webster
duplicate implies a double or counterpart exactly corresponding to another thing. a duplicate of a house key. copy applies especially to one of ......
Read more >
Remove duplicate words from Sentence using Regular ...
Given a string str which represents a sentence, the task is to remove the duplicate words from sentences using regular expression in java....
Read more >
How to VLOOKUP multiple values in Excel with criteria - Ablebits
See how to Vlookup multiple matches in Excel based on one or more conditions and return multiple values in a column, row or...
Read more >
How to Find Duplicate Values in SQL - LearnSQL.com
Duplicate records waste time, space, and money. Learn how to find and fix duplicate values using SQL's GROUP BY and HAVING clauses.
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