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.

Add support for non-ASCII search

See original GitHub issue

Hi all,

Currently, Fuse doesn’t support searching through non-ASCII characters. For instance searching with stro on strömberg only matches str. This could be changed by

  • transliterating input to ASCII (e.g. stro -> stro)
  • transliterating all strings within an item to ASCII when evaluating that item (e.g. strömberg -> stromberg)
  • performing the match on the transliterated item (e.g. match [0,3])
  • returning original version item + matches (e.g. strömberg + match [0,3])

This code seems to have a pretty complete transliteration table (see char_map object): https://github.com/pid/speakingurl/blob/master/lib/speakingurl.js

Not that I have a need for it at the moment, just bringing it up as a suggestion 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:31
  • Comments:7

github_iconTop GitHub Comments

3reactions
drzrafcommented, Jul 28, 2017

"string".normalize('NFD').replace(/[\u0300-\u036f]/g, ""); would do it as part of a lexer

2reactions
github-actions[bot]commented, Apr 1, 2020

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Find Non-ASCII Characters in Text Files in Linux
Learn multiple methods for finding and highlighting non-ASCII characters within text files.
Read more >
regex - search document for non-ascii - Stack Overflow
I have several, and one doesn't work; the program fails to read it and tells me that there is a bad character in...
Read more >
Code Inspection: Non-ASCII characters | PhpStorm ... - JetBrains
Reports code elements that use non-ASCII symbols in an unusual context. Example: Non-ASCII characters used in identifiers, strings, ...
Read more >
How to display special non-ASCII Unicode characters in ...
@RockPaperLz-MaskitorCasket I'm using Notepad++ v7.9 (64-bit) (build time Sep 22 2020 - 03:19:04) on Windows 10. Where do you find the font ...
Read more >
Insert ASCII or Unicode Latin-based symbols and characters
If you need a Unicode character and are using one of the programs that doesn't support Unicode characters, use the Character Map to...
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