You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to generate a valid glob that uniquely matches a filename.
For a file called ba[ra].foo the glob needs to escape the brackets like this: bar\[ra\].foo, in order to avoid matching files called baa.foo or bar.foo. There are enough other characters and expressions that need escaping that the task does not seem trivial.
Maybe the solution to this is as simple as a regex that you could add to the documentation.
The text was updated successfully, but these errors were encountered:
I need to generate a valid glob that uniquely matches a filename.
For a file called
ba[ra].foo
the glob needs to escape the brackets like this:bar\[ra\].foo
, in order to avoid matching files calledbaa.foo
orbar.foo
. There are enough other characters and expressions that need escaping that the task does not seem trivial.Maybe the solution to this is as simple as a regex that you could add to the documentation.
The text was updated successfully, but these errors were encountered: