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.

Support escaping special characters

See original GitHub issue

Characters like {, }, ,, !,[,] are valid file path names. To match path containing these special symbols, glob pattern need to support escape using \. In this case, \[ should match [ instead of throwing an error.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kthompsoncommented, Mar 11, 2020

I just released a build that may help. It adds support for all characters that are not special to globbing syntax as part of issue #57

My plan is to add support for escaping characters by using \ which is currently used for a secondary path separator. Since this may break many existing glob expressions this will be part of a 2.0 release.

1reaction
kthompsoncommented, Sep 6, 2020

Hello @yufeih, it has been a while since I have updated this ticket. If you would like to take a look at beta version with this feature you can find it here: https://www.nuget.org/packages/Glob/1.2.0-alpha0029

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escaping special characters
Lucene supports escaping special characters that are part of the query syntax. To escape a special character, precede the character with a backslash...
Read more >
Escaping, special characters
To use a special character as a regular one, prepend it with a backslash: \. . That's also called “escaping a character”. For...
Read more >
Escaping special characters
This article describes how to escape special characters when using WinAutomation for text manipulation.
Read more >
avoid to escape a special characters in javascript
My server returns value as support\testing . When I get this value in client it can be escaped as support testing . \t...
Read more >
How to escape Reserved Characters, in an Activity
When entering Notes with certain special characters, the special character is getting converted into its escape character sequence.
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