Skip to content

Commit b4a91c3

Browse files
committed
a double dot is not end of sentence
1 parent 7a7608c commit b4a91c3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/doc/rustc-dev-guide/ci/sembr/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ static REGEX_IGNORE: LazyLock<Regex> =
2727
static REGEX_IGNORE_END: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"(\.|\?|;|!)$").unwrap());
2828
static REGEX_IGNORE_LINK_TARGETS: LazyLock<Regex> =
2929
LazyLock::new(|| Regex::new(r"^\[.+\]: ").unwrap());
30-
static REGEX_SPLIT: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"(\.|[^r]\?|;|!)\s+").unwrap());
30+
static REGEX_SPLIT: LazyLock<Regex> =
31+
LazyLock::new(|| Regex::new(r"([^\.]\.|[^r]\?|;|!)\s+").unwrap());
3132

3233
fn main() -> Result<()> {
3334
let cli = Cli::parse();
@@ -183,6 +184,7 @@ ignore E.g. too
183184
some code. block
184185
```
185186
sentence with *italics* should not be ignored. truly.
187+
git log main.. compiler
186188
";
187189
let expected = "\
188190
# some. heading
@@ -203,6 +205,7 @@ some code. block
203205
```
204206
sentence with *italics* should not be ignored.
205207
truly.
208+
git log main.. compiler
206209
";
207210
assert_eq!(expected, comply(original));
208211
}

src/doc/rustc-dev-guide/src/getting-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ But also, feel free to ask questions even if you can't figure out who to ping.
5959

6060
Another way to find experts for a given part of the compiler is to see who has made recent commits.
6161
For example, to find people who have recently worked on name resolution since the 1.68.2 release,
62-
you could run `git shortlog -n 1.68.2..
63-
compiler/rustc_resolve/`.
62+
you could run `git shortlog -n 1.68.2.. compiler/rustc_resolve/`.
6463
Ignore any commits starting with
6564
"Rollup merge" or commits by `@bors` (see [CI contribution procedures](./contributing.md#ci) for
6665
more information about these commits).

0 commit comments

Comments
 (0)