Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 17, 2023
1 parent f35d0b8 commit 312360f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ On Windows, UNC paths like `//?/c:/...` or
`//ComputerName/Share/...` are handled specially.

- Patterns starting with a double-slash followed by some
non-slash characters will preserve their double-slash. As a
non-slash characters will preserve their double-slash. As a
result, a pattern like `//*` will match `//x`, but not `/x`.
- Patterns staring with `//?/<drive letter>:` will *not* treat
the `?` as a wildcard character. Instead, it will be treated
- Patterns staring with `//?/<drive letter>:` will _not_ treat
the `?` as a wildcard character. Instead, it will be treated
as a normal string.
- Patterns starting with `//?/<drive letter>:/...` will match
file paths starting with `<drive letter>:/...`, and vice versa,
as if the `//?/` was not present. This behavior only is
as if the `//?/` was not present. This behavior only is
present when the drive letters are a case-insensitive match to
one another. The remaining portions of the path/pattern are
one another. The remaining portions of the path/pattern are
compared case sensitively, unless `nocase:true` is set.

Note that specifying a UNC path using `\` characters as path
Expand Down
24 changes: 12 additions & 12 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

- Handle UNC paths on Windows

This adds some slightly modified behavior when a pattern or path starts
with `//` on Windows.

- In the case of `//?/<drive letter>:/...`, the `?` is treated as a
literal character, rather than a wildcard. That is, `//?/c:` will
_not_ match `//x/c:`.
- UNC patterns starting with `//?/<drive letter>:/` will match file paths
starting with `<drive letter>:` if the drive letters match
case-insensitively.
- File paths starting with `//?/<drive letter>:/` will match file
patterns starting with `<drive letter>:` if the drive letters match
case-insensitively.
This adds some slightly modified behavior when a pattern or path starts
with `//` on Windows.

- In the case of `//?/<drive letter>:/...`, the `?` is treated as a
literal character, rather than a wildcard. That is, `//?/c:` will
_not_ match `//x/c:`.
- UNC patterns starting with `//?/<drive letter>:/` will match file paths
starting with `<drive letter>:` if the drive letters match
case-insensitively.
- File paths starting with `//?/<drive letter>:/` will match file
patterns starting with `<drive letter>:` if the drive letters match
case-insensitively.

- Add `{preserveMultipleSlashes:true}` option to suppress the
behavior where multiple consecutive `/` characters would be
Expand Down

0 comments on commit 312360f

Please sign in to comment.