Skip to content

Commit 421e0e7

Browse files
authoredNov 21, 2021
Merge pull request #98 from mojavelinux/document-automatic-lookbehind-detection
document that lookbehind detection is automatic
2 parents 820dbce + 5151c20 commit 421e0e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ The following options may be used with the main `picomatch()` function or any of
317317
| `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. |
318318
| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. |
319319
| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. |
320-
| `lookbehinds` | `boolean` | `true` | Support regex positive and negative lookbehinds. Note that you must be using Node 8.1.10 or higher to enable regex lookbehinds. |
321320
| `matchBase` | `boolean` | `false` | Alias for `basename` |
322321
| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
323322
| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
@@ -341,6 +340,8 @@ The following options may be used with the main `picomatch()` function or any of
341340
| `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. |
342341
| `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatibility. |
343342

343+
picomatch has automatic detection for regex positive and negative lookbehinds. If the pattern contains a negative lookbehind, you must be using Node.js >= 8.10 or else picomatch will throw an error.
344+
344345
### Scan Options
345346

346347
In addition to the main [picomatch options](#picomatch-options), the following options may also be used with the [.scan](#scan) method.

0 commit comments

Comments
 (0)
Please sign in to comment.