Skip to content

Commit

Permalink
Adjust some wording
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 10, 2021
1 parent 4b87189 commit 15ce582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/src/markdown/fnmatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Pattern | Meaning
`!(pattern_list)` | The pattern matches if the input string cannot be matched with any of the patterns in the `pattern_list`. Requires the [`EXTMATCH`](#extmatch) flag.
`{}` | Bash style brace expansions. This is applied to patterns before anything else. Requires the [`BRACE`](#brace) flag.

- Slashes are generally treated as normal characters, but on windows they are normalized. `/` will match both `/` and
`\\` or `/`. There is no need to explicitly use `\\` in patterns on Windows, but if you do, they must be escaped to
specify a literal `\\`. If a backslash is escaped, it will match all valid windows separators, just like `/` does.
- Slashes are generally treated as normal characters, but on windows they are normalized. On Windows, `/` will match
both `/` and `\\`. There is no need to explicitly use `\\` in patterns on Windows, but if you do, they must be escaped
to specify a literal `\\`. If a backslash is escaped, it will match all valid windows separators, just like `/` does.
- By default, `.` is *not* matched by `*`, `?`, and `[]`. See the [`DOTMATCH`](#dotmatch) flag to match `.` at
the start of a filename without a literal `.`.

Expand Down
6 changes: 3 additions & 3 deletions docs/src/markdown/glob.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Pattern | Meaning
- Slashes are generally treated special in glob related methods. Slashes are not matched in `[]`, `*`, `?`, or extended
patterns like `*(...)`. Slashes can be matched by `**` if [`GLOBSTAR`](#globstar) is set.

- Slashes are on Windows are normalized. `/` will match both `/` and `\\` or `/`. There is no need to explicitly use
`\\` in patterns on Windows, but if you do, they must be escaped to specify a literal `\\`. If a backslash is escaped,
it will match all valid windows separators, just like `/` does.
- Slashes on Windows are normalized. `/` will match both `/` and `\\`. There is no need to explicitly use `\\` in
patterns on Windows, but if you do, they must be escaped to specify a literal `\\`. If a backslash is escaped, it will
match all valid windows separators, just like `/` does.

- On Windows, drives are treated special and must come at the beginning of the pattern and cannot be matched with `*`,
`[]`, `?`, or even extended match patterns like `+(...)`.
Expand Down

0 comments on commit 15ce582

Please sign in to comment.