Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Jan 20, 2025
1 parent 7cc14c6 commit a0b8a91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Advanced options that override standard behavior, error checking, and flags when
- `captureGroup`: Allow unnamed captures and numbered calls (backreferences and subroutines) when using named capture.
- This is Oniguruma option `ONIG_OPTION_CAPTURE_GROUP`; on by default in `vscode-oniguruma`.
- `recursionLimit`: Change the recursion depth limit from Oniguruma's `20` to an integer `2``20`.
- `singleline`: Treat `^` as `\A`; `$` as `\Z`. Can be used to improve search performance without changing meaning when searching line by line.
- `singleline`: `^` as `\A`; `$` as `\Z`. Improves search performance without changing meaning if searching line by line.
- This is Oniguruma option `ONIG_OPTION_SINGLELINE`.

### `target`
Expand Down
4 changes: 2 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function getOptions(options) {
captureGroup: false,
// Change the recursion depth limit from Oniguruma's `20` to an integer `2`–`20`.
recursionLimit: 20,
// Treat `^` as `\A`; `$` as `\Z`. Can be used to improve search performance without changing
// meaning when searching line by line. This is Oniguruma option `ONIG_OPTION_SINGLELINE`.
// `^` as `\A`; `$` as`\Z`. Improves search performance without changing meaning if searching
// line by line. This is Oniguruma option `ONIG_OPTION_SINGLELINE`.
singleline: false,
...(options?.rules),
},
Expand Down

0 comments on commit a0b8a91

Please sign in to comment.