autoformat

master
Tomáš Mládek 2020-10-12 21:20:35 +02:00
parent 497dd2e82a
commit df2613d083
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ fn preprocess(string: String) -> String {
let start_delims = vec![b'(', b'<'];
let end_delims = vec![b')', b'>'];
let links = finder.links(result.as_str()).filter(|link| {
// link.end() is the first char AFTER the link!
// link.end() is the first char AFTER the link!
(link.start() == 0 || link.end() == result.len())
|| (!start_delims.contains(&result_vec[link.start() - 1])
&& !end_delims.contains(&result_vec[link.end()]))