mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-23 09:30:57 -05:00
c7a34fcbe2
Needed a `(?s)` to match multiple enclosed newlines. And added a non-greedy modifier and matching test to prevent double blocks from causing intermediate lines to be ignored: ```shell # spellchecker:off should be ignored # spellchecker:on should not be ignored # without non-greedy, this is also ignored # spellchecker:off should be ignored # spellchecker:on ```
18 lines
255 B
TOML
18 lines
255 B
TOML
bin.name = "typos"
|
|
stdin = "--sort"
|
|
stdout = """
|
|
error: `hello` should be `goodbye`
|
|
--> ./file.ignore:1:1
|
|
|
|
|
1 | hello
|
|
| ^^^^^
|
|
|
|
|
error: `hello` should be `goodbye`
|
|
--> ./file.ignore:6:1
|
|
|
|
|
6 | hello
|
|
| ^^^^^
|
|
|
|
|
"""
|
|
stderr = ""
|
|
status.code = 2
|