Skip to content

Commit 9542d61

Browse files
committed
do not mess with a &[u8; 2]
1 parent ea28b17 commit 9542d61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/sembr/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static REGEX_IGNORE_END: LazyLock<Regex> =
2727
static REGEX_IGNORE_LINK_TARGETS: LazyLock<Regex> =
2828
LazyLock::new(|| Regex::new(r"^\[.+\]: ").unwrap());
2929
static REGEX_SPLIT: LazyLock<Regex> =
30-
LazyLock::new(|| Regex::new(r"([^\.\d\-\*]\.|[^r]\?|;|!)\s").unwrap());
30+
LazyLock::new(|| Regex::new(r"([^\.\d\-\*]\.|[^r]\?|!)\s").unwrap());
3131
// list elements, numbered (1.) or not (- and *)
3232
static REGEX_LIST_ENTRY: LazyLock<Regex> =
3333
LazyLock::new(|| Regex::new(r"^\s*(\d\.|\-|\*)\s+").unwrap());
@@ -196,7 +196,7 @@ fn lengthen_lines(content: &str, limit: usize) -> String {
196196
fn test_sembr() {
197197
let original = "
198198
# some. heading
199-
must! be; split?
199+
must! be. split?
200200
1. ignore a dot after number. but no further
201201
ignore | tables
202202
ignore e.g. and
@@ -214,7 +214,7 @@ git log main.. compiler
214214
let expected = "
215215
# some. heading
216216
must!
217-
be;
217+
be.
218218
split?
219219
1. ignore a dot after number.
220220
but no further

0 commit comments

Comments
 (0)