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.

Exlude newline characters

See original GitHub issue

Shouldn’t newline characters (\n and \r) also be part of the tokenizer regex?

Otherwise, words at the start of a new line won’t be matched by a search since the preceding newline chars are added to the start of that term.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
samuelmeulicommented, Jul 21, 2019

I think that’s because in your test case, there are spaces (the indentation) between the newline character and the word you’re searching for.

I can work on a PR if you’d like 😃

0reactions
samuelmeulicommented, Jul 21, 2019

Awesome, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python | Removing newline character from string
The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string. Our task can...
Read more >
How can I remove a trailing newline? - python - Stack Overflow
You may use line = line.rstrip('\n') . This will strip all newlines from the end ...
Read more >
How to remove newlines from C# strings? - Kodify.net
The first option is to cut away any and all newline characters from a string. This approach has the biggest impact since it...
Read more >
Remove Newline Characters command - EmEditor Help
Removes newline characters at wrap points in the selection. Similar to Join Lines command, but this command does not insert a space at...
Read more >
How to Remove Newline Characters from a text File?
In this article, we will show you how to remove the newline character(\n) from a given text file using python. Assume we have...
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