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
Copy file name to clipboardExpand all lines: .verb.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,11 +95,9 @@ The following options may be used with the main `picomatch()` function or any of
95
95
|`bash`|`boolean`|`false`| Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). |
96
96
|`capture`|`boolean`|`undefined`| Return regex matches in supporting methods. |
97
97
|`contains`|`boolean`|`undefined`| Allows glob to match any part of the given string(s). |
98
-
|`cwd`|`string`|`process.cwd()`| Current working directory. Used by `picomatch.split()`|
99
98
|`debug`|`boolean`|`undefined`| Debug regular expressions when an error is thrown. |
100
99
|`dot`|`boolean`|`false`| Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true |
101
100
|`expandRange`|`function`|`undefined`| Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. |
102
-
|`failglob`|`boolean`|`false`| Throws an error if no matches are found. Based on the bash option of the same name. |
103
101
|`fastpaths`|`boolean`|`true`| To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. |
104
102
|`flags`|`string`|`undefined`| Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. |
105
103
|[format](#optionsformat)|`function`|`undefined`| Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. |
@@ -111,23 +109,19 @@ The following options may be used with the main `picomatch()` function or any of
111
109
|`nobrace`|`boolean`|`false`| Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
112
110
|`nobracket`|`boolean`|`undefined`| Disable matching with regex brackets. |
113
111
|`nocase`|`boolean`|`false`| Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. |
114
-
|`nodupes`|`boolean`|`true`| Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. |
115
112
|`noext`|`boolean`|`false`| Alias for `noextglob`|
116
113
|`noextglob`|`boolean`|`false`| Disable support for matching with extglobs (like `+(a|b)`) |
117
114
|`noglobstar`|`boolean`|`false`| Disable support for matching nested directories with globstars (`**`) |
118
115
|`nonegate`|`boolean`|`false`| Disable support for negating with leading `!`|
119
-
|`noquantifiers`|`boolean`|`false`| Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. |
120
116
|[onIgnore](#optionsonIgnore)|`function`|`undefined`| Function to be called on ignored items. |
121
117
|[onMatch](#optionsonMatch)|`function`|`undefined`| Function to be called on matched items. |
122
118
|[onResult](#optionsonResult)|`function`|`undefined`| Function to be called on all items, regardless of whether or not they are matched or ignored. |
123
119
|`posix`|`boolean`|`false`| Support POSIX character classes ("posix brackets"). |
124
-
|`posixSlashes`|`boolean`|`undefined`| Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself |
125
120
|`prepend`|`boolean`|`undefined`| String to prepend to the generated regex used for matching. |
126
121
|`regex`|`boolean`|`false`| Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). |
127
122
|`strictBrackets`|`boolean`|`undefined`| Throw an error if brackets, braces, or parens are imbalanced. |
128
123
|`strictSlashes`|`boolean`|`undefined`| When true, picomatch won't match trailing slashes with single stars. |
129
124
|`unescape`|`boolean`|`undefined`| Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. |
130
-
|`unixify`|`boolean`|`undefined`| Alias for `posixSlashes`, for backwards compatibility. |
131
125
|`windows`|`boolean`|`false`| Also accept backslashes as the path separator. |
| `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). |
326
-
| `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` |
327
326
| `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. |
328
327
| `dot` | `boolean` | `false` | Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true |
329
328
| `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. |
330
-
| `failglob` | `boolean` | `false` | Throws an error if no matches are found. Based on the bash option of the same name. |
331
329
| `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. |
332
330
| `flags` | `string` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. |
333
331
| [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. |
@@ -339,23 +337,19 @@ The following options may be used with the main `picomatch()` function or any of
339
337
| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
| `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. |
342
-
| `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. |
343
340
| `noext` | `boolean` | `false` | Alias for `noextglob` |
344
341
| `noextglob` | `boolean` | `false` | Disable support for matching with extglobs (like `+(a\|b)`) |
345
342
| `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) |
346
343
| `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` |
347
-
| `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. |
348
344
| [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. |
349
345
| [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. |
350
346
| [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. |
351
347
| `posix` | `boolean` | `false` | Support POSIX character classes ("posix brackets"). |
352
-
| `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself |
353
348
| `prepend` | `boolean` | `undefined` | String to prepend to the generated regex used for matching. |
354
349
| `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). |
355
350
| `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. |
356
351
| `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. |
357
352
| `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. |
358
-
| `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatibility. |
359
353
| `windows` | `boolean` | `false` | Also accept backslashes as the path separator. |
0 commit comments