Skip to content

Commit

Permalink
Readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Nov 22, 2024
1 parent ea8846e commit 81c55f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Advanced pattern options that override standard error checking and flags when en
- `allowOrphanBackrefs`: Useful with TextMate grammars that merge backreferences across patterns.
- `allowUnhandledGAnchors`: Applies flag `y` for unsupported uses of `\G`, rather than erroring.
- Oniguruma-To-ES uses a variety of strategies to accurately emulate many common uses of `\G`. When using this option, if a `\G` is found that doesn't have a known emulation strategy, the `\G` is simply removed and JavaScript's `y` (`sticky`) flag is added. This might lead to some false positives and negatives, but is useful for non-critical matching (like syntax highlighting) when having some mismatches is better than not working.
- `asciiWordBoundaries`: ASCII-based `\b` and `\B`.
- `asciiWordBoundaries`: Use ASCII-based `\b` and `\B`, which increases performance.

### `target`

Expand Down Expand Up @@ -461,7 +461,7 @@ Notice that nearly every feature below has at least subtle differences from Java
<td align="middle">✅</td>
<td>
✔ Unicode by default<br>
Compared to JS's Unicode <code>\s</code>: excludes <code>\uFEFF</code>, includes <code>\x85</code><br>
No JS adjustments to Unicode set (−<code>\uFEFF</code>, +<code>\x85</code>)<br>
</td>
</tr>
<tr valign="top">
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h2>Try it</h2>
<label>
<input type="checkbox" id="option-asciiWordBoundaries" onchange="setRule('asciiWordBoundaries', this.checked)">
<code>asciiWordBoundaries</code>
<span class="tip tip-lg">ASCII-based <code>\b</code> and <code>\B</code></span>
<span class="tip tip-lg">Use ASCII-based <code>\b</code> and <code>\B</code></span>
</label>
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function getOptions(options) {
allowOrphanBackrefs: false,
// Applies flag `y` for unsupported uses of `\G`, rather than erroring.
allowUnhandledGAnchors: false,
// ASCII-based `\b` and `\B`.
// Use ASCII-based `\b` and `\B`, which increases performance.
asciiWordBoundaries: false,
...(options?.rules),
},
Expand Down

0 comments on commit 81c55f1

Please sign in to comment.