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.

Find Regex for only non-basic Latin characters matches "S" and "s"

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes

Issue Type: Bug

Find regex for non-Basic Latin characters matches “S” and “s” alone. I tested on regex101.com without problems. The regex is supposed to match characters with diactrical marks, and for some reason in VS Code it matches the letters “S” and “s” without matching “P” or “a” for example.

VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i7-6500U CPU @ 2.50GHz (4 x 2592)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.89GB (9.24GB free)
Process Argv –crash-reporter-id ce2503b0-8560-41ba-9434-424948b2a74a
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392cf:30425750
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dsc:30424895
pythonvs932:30410667
vscop804:30404766
vscop453:30404998
vsrem710cf:30416617
vsbas813:30426126

Steps to Reproduce:

1.Paste this text into a new file 【ADAPSO】アダプソ 【Neuquén】ネウケン 2. Find with the regex : [À-ÿĀ-ſƀ-ɏɐ-ʯḀ-ỿⱠ-ⱿꜢ-ꟿꬰ-ꭤff-st] 3. It should only match é in Neuquén, but it also matches S in ADAPSO 4. Do the same test on regex101.com or Notepad++ without problems

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
RedCMDcommented, Jan 22, 2022

S and s are singly being matched by ſ: LATIN SMALL LETTER LONG S https://apps.timwhitlock.info/unicode/inspect?s=ſ

0reactions
VSCodeTriageBotcommented, Dec 15, 2022

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regex to match only letters - Stack Overflow
Use a character set: [a-zA-Z] matches one letter from A–Z in lowercase and uppercase. [a-zA-Z]+ matches one or more letters and ^[a-zA-Z]+$ matches...
Read more >
Regular Expression (Regex) Tutorial
To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ )....
Read more >
find filenames with non latin characters in their names
I want to find files with foreign filenames in them, I'm using a regex to find such files with another tool but I...
Read more >
Regular expression syntax cheatsheet - JavaScript | MDN
This page provides an overall cheat sheet of all the capabilities of RegExp syntax by aggregating the content of the articles in the...
Read more >
Regular expressions
If “ . ” matches any character, how do you match a literal “ . ”? You need to use an “escape” 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