Skip to content

Commit

Permalink
Typos: Remove duplicate words
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 30, 2024
1 parent 0be4cfb commit 37d16ac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 10.0

- **NEW**: Added `GLOBSTARLONG` which adds support for the Zsh style `***` which acts like `**` with `GLOBSTAR` but
but traverses symlinks.
traverses symlinks.
- **NEW**: `pathlib.match` will respect symlink rules (when the `REALPATH` flag is given). Hidden file rules will
be respected at all times. Enable `DOTALL` to match hidden files.
- **NEW**: Symlinks should not be traversed when `GLOBSTAR` is enabled unless `FOLLOW` is also enabled, but they
Expand Down Expand Up @@ -124,7 +124,7 @@
## 7.0.1

- **FIX**: Ensure that when using `REALPATH` that all symlinks are evaluated.
- **FIX**: Fix issue where an extended pattern pattern can't follow right behind an inverse extended pattern.
- **FIX**: Fix issue where an extended pattern can't follow right behind an inverse extended pattern.
- **FIX**: Fix issues related to nested inverse glob patterns.

## 7.0
Expand Down Expand Up @@ -280,8 +280,8 @@ Check out [Release Notes](./release.md#upgrade-to-7.0) to learn more about upgra
- **NEW**: Deprecated `WcMatch` class methods `kill` and `reset`. `WcMatch` should be broken with a simple `break`
statement instead.
- **NEW**: Add a new flag `MARK` to force `glob` to return directories with a trailing slash.
- **NEW**: Add `MATCHBASE` that causes glob glob related functions and `WcMatch`, when the pattern has no slashes in
it, to seek for any file anywhere in the tree with a matching basename.
- **NEW**: Add `MATCHBASE` that causes glob related functions and `WcMatch`, when the pattern has no slashes in it, to
seek for any file anywhere in the tree with a matching basename.
- **NEW**: Add `NODIR` that causes `glob` matchers and crawlers to only match and return files.
- **NEW**: Exclusion patterns (enabled with `NEGATE`) now always enable `DOTALL` in the exclusion patterns. They also
will match symlinks in `**` patterns. Only non `NEGATE` patterns that are paired with a `NEGATE` pattern are subject
Expand Down
2 changes: 1 addition & 1 deletion docs/src/markdown/about/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ patterns, which are used to filter the results, can match `.` or `..` with `.*`:
[]
```

If we want to modify the pattern matcher, and not just the the directory scanner, we can use the flag
If we want to modify the pattern matcher, and not just the directory scanner, we can use the flag
[`NODITDIR`](../glob.md#nodotdir).

```pycon3
Expand Down
4 changes: 2 additions & 2 deletions docs/src/markdown/pathlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ True
#### `pathlib.WindowsPath` {: #windowspath}

`WindowsPath` is Wildcard Match's version of Python's `WindowsPath`. The `WindowsPath` class is useful if you'd like to
have the ease that `pathlib` offers when working with a path and be able to manipulate or gain access to to information
have the ease that `pathlib` offers when working with a path and be able to manipulate or gain access to information
about that file. You cannot instantiate this class on a Posix system. This class will utilize Wildcard Match's
[`glob`](./glob.md) for all glob related actions. The class is subclassed from [`Path`](#path).

Expand All @@ -227,7 +227,7 @@ WindowsPath('c:/some/path')
#### `pathlib.PosixPath` {: #posixpath}

`PosixPath` is Wildcard Match's version of Python's `PosixPath`. The `PosixPath` class is useful if you'd like to
have the ease that `pathlib` offers when working with a path and be able to manipulate or gain access to to information
have the ease that `pathlib` offers when working with a path and be able to manipulate or gain access to information
about that file. You cannot instantiate this class on a Windows system. This class will utilize Wildcard Match's
[`glob`](./glob.md) for all glob related actions. The class is subclassed from [`Path`](#path).

Expand Down
15 changes: 7 additions & 8 deletions docs/src/markdown/wcmatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ pattern which will perform much better: `@(ab|ac|ad)`.
still impact performance as each file must get compared against many patterns until one is matched. Sometimes
patterns like this are needed, so construct patterns thoughtfully and carefully.

2. Splitting patterns with `|` is built into [`WcMatch`](#wcmatch_1). `BRACE` and and splitting with `|` both
expand patterns into multiple patterns. Using these two syntaxes simultaneously can exponential increase in
duplicate patterns:
2. Splitting patterns with `|` is built into [`WcMatch`](#wcmatch_1). `BRACE` and splitting with `|` both expand
patterns into multiple patterns. Using these two syntaxes simultaneously can exponential increase in duplicate
patterns:

```pycon3
>>> expand('test@(this{|that,|other})|*.py', BRACE | SPLIT | EXTMATCH)
Expand Down Expand Up @@ -409,11 +409,10 @@ for convenience.

#### `wcmatch.MATCHBASE, wcmatch.X` {: #matchbase}

When [`FILEPATHNAME`](#filepathname) or [`DIRPATHNAME`](#dirpathname) is enabled, `MATCHBASE` will ensure
that that the respective file or directory pattern, when there are no slashes in the pattern, seeks for any file
anywhere in the tree with a matching basename. This is essentially the behavior when
[`FILEPATHNAME`](#filepathname) and [`DIRPATHNAME`](#dirpathname) is disabled, but with `MATCHBASE`, you
can toggle the behavior by including slashes in your pattern.
When [`FILEPATHNAME`](#filepathname) or [`DIRPATHNAME`](#dirpathname) is enabled, `MATCHBASE` will ensure that the
respective file or directory pattern, when there are no slashes in the pattern, seeks for any file anywhere in the tree
with a matching basename. This is essentially the behavior when [`FILEPATHNAME`](#filepathname) and
[`DIRPATHNAME`](#dirpathname) is disabled, but with `MATCHBASE`, you can toggle the behavior by including slashes in your pattern.

When we include no slashes:

Expand Down
6 changes: 3 additions & 3 deletions wcmatch/glob.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ class _GlobSplit(Generic[AnyStr]):
Glob pattern return a list of patterns broken down at the directory
boundary. Each piece will either be a literal file part or a magic part.
Each part will will contain info regarding whether they are
a directory pattern or a file pattern and whether the part
is "magic", etc.: `["pattern", is_magic, is_globstar, dir_only, is_drive]`.
Each part will contain info regarding whether they are a directory pattern
or a file pattern and whether the part is "magic", etc.:
`["pattern", is_magic, is_globstar, dir_only, is_drive]`.
Example:
-------
Expand Down

0 comments on commit 37d16ac

Please sign in to comment.