Skip to content

Commit 23af337

Browse files
committed
chore: update readme
1 parent 2d6170f commit 23af337

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ new Match(pattern, callback);
3232
new Match(pattern, callback, Buffer.from);
3333
```
3434

35-
- `pattern` (string): The pattern to search for. Must be between 1 and 256 characters long.
36-
- `callback` (function): The function to be called when there's a match or when a chunk of data is processed.
37-
- `from` (function, optional): The native or custom `Buffer.from` implementation for runtimes like Node.js. Defaults to an internal, browser-compatible function.
35+
- `pattern` (Uint8Array|string): The pattern to search for. Must be between 1 and 256 characters long.
36+
- `callback` (Function): The function to be called when there's a match or when a chunk of data is processed.
37+
- `from` (Function, optional): Custom `Buffer.from` implementation for runtimes like Node.js. Defaults to an internal, browser-compatible function.
3838

3939
The constructor may throw:
4040

@@ -50,7 +50,7 @@ The constructor may throw:
5050

5151
- `destroy()`: Calls the callback with any remaining lookbehind data and calls `reset()`.
5252
- `reset()`: Resets the internal state.
53-
- `write(chunk)`: Feeds a chunk of data.
53+
- `write(chunk: Uint8Array|string)`: Feeds a chunk of data.
5454

5555
#### Callback Parameters
5656

0 commit comments

Comments
 (0)