Skip to content

Commit bf6a33b

Browse files
authored
chore: fix docs (#139)
* chore: fix docs * Add node 22 and 23, macos and node 12 and 14 does not work
1 parent 570df2f commit bf6a33b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
node: [12, 14, 16, 18, 20, 21]
17-
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
node: [12, 14, 16, 18, 20, 22, 23]
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
exclude:
19+
- os: macos-latest
20+
node: 12
21+
- os: macos-latest
22+
node: 14
1823

1924
steps:
2025
- name: Clone repository

.verb.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The following options may be used with the main `picomatch()` function or any of
107107
| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. |
108108
| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. |
109109
| `matchBase` | `boolean` | `false` | Alias for `basename` |
110-
| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
110+
| `maxLength` | `number` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
111111
| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
112112
| `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. |
113113
| `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. |
@@ -273,7 +273,7 @@ isMatch('baz');
273273
| **Character** | **Description** |
274274
| --- | --- |
275275
| `*` | Matches any character zero or more times, excluding path separators. Does _not match_ path separators or hidden files or directories ("dotfiles"), unless explicitly enabled by setting the `dot` option to `true`. |
276-
| `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` on Windows) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. |
276+
| `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` with the `windows` option) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. |
277277
| `?` | Matches any character excluding path separators one time. Does _not match_ path separators or leading dots. |
278278
| `[abc]` | Matches any characters inside the brackets. For example, `[abc]` would match the characters `a`, `b` or `c`, and nothing else. |
279279

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ The following options may be used with the main `picomatch()` function or any of
335335
| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. |
336336
| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. |
337337
| `matchBase` | `boolean` | `false` | Alias for `basename` |
338-
| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
338+
| `maxLength` | `number` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
339339
| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
340340
| `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. |
341341
| `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. |

0 commit comments

Comments
 (0)