Skip to content

Commit dfb4960

Browse files
committed
handle another numbered list notation
1 parent dbc389c commit dfb4960

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ci/sembr/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static REGEX_SPLIT: LazyLock<Regex> =
2727
LazyLock::new(|| Regex::new(r"([^\.\d\-\*]\.|[^r]\?|!)\s").unwrap());
2828
// list elements, numbered (1.) or not (- and *)
2929
static REGEX_LIST_ENTRY: LazyLock<Regex> =
30-
LazyLock::new(|| Regex::new(r"^\s*(\d\.|\-|\*)\s+").unwrap());
30+
LazyLock::new(|| Regex::new(r"^\s*(\d\.|\-|\*|\d\))\s+").unwrap());
3131

3232
fn main() -> Result<()> {
3333
let cli = Cli::parse();
@@ -194,6 +194,7 @@ ignore etc. and
194194
ignore E.g. too
195195
- list. entry
196196
* list. entry
197+
1) list. entry
197198
```
198199
some code. block
199200
```
@@ -220,6 +221,8 @@ ignore E.g. too
220221
entry
221222
* list.
222223
entry
224+
1) list.
225+
entry
223226
```
224227
some code. block
225228
```

0 commit comments

Comments
 (0)