Compare commits

..

1 commit

Author SHA1 Message Date
dependabot[bot]
7fd83f75bf
Bump regex from 0.2.11 to 1.5.5
Bumps [regex](https://github.com/rust-lang/regex) from 0.2.11 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/0.2.11...1.5.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 21:13:38 +00:00
8 changed files with 38 additions and 16 deletions

44
Cargo.lock generated
View file

@ -11,6 +11,15 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "aho-corasick"
version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "ansi_term" name = "ansi_term"
version = "0.11.0" version = "0.11.0"
@ -39,23 +48,23 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]] [[package]]
name = "bart" name = "bart"
version = "0.1.6" version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3678acb7a27ff77a32f794d2d47634d0eb3a4612cfeb62f35c9f2a74f9346c60" checksum = "f0f9d52a5c46e2abe28ae1c2ecdaa320c01e424c29a56acb7a6222141c78bae7"
dependencies = [ dependencies = [
"nom", "nom",
] ]
[[package]] [[package]]
name = "bart_derive" name = "bart_derive"
version = "0.1.6" version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb1b0d0b2b455346cae481cb4762e1a68965a05b07fc2a5c6857f0a57f590fdb" checksum = "39fdc9035ac29aeb14993e2cdae217de7ccc9f9960eae0c5a12d541ca11c6af1"
dependencies = [ dependencies = [
"itertools", "itertools",
"num", "num",
"quote 0.3.15", "quote 0.3.15",
"syn 0.11.11", "syn 0.10.8",
] ]
[[package]] [[package]]
@ -942,13 +951,24 @@ version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" checksum = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick 0.6.10",
"memchr", "memchr",
"regex-syntax", "regex-syntax 0.5.6",
"thread_local", "thread_local",
"utf8-ranges", "utf8-ranges",
] ]
[[package]]
name = "regex"
version = "1.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
dependencies = [
"aho-corasick 0.7.18",
"memchr",
"regex-syntax 0.6.26",
]
[[package]] [[package]]
name = "regex-syntax" name = "regex-syntax"
version = "0.5.6" version = "0.5.6"
@ -958,6 +978,12 @@ dependencies = [
"ucd-util", "ucd-util",
] ]
[[package]]
name = "regex-syntax"
version = "0.6.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64"
[[package]] [[package]]
name = "relay" name = "relay"
version = "0.1.1" version = "0.1.1"
@ -1032,7 +1058,7 @@ dependencies = [
"r2d2", "r2d2",
"r2d2-diesel", "r2d2-diesel",
"rand 0.5.6", "rand 0.5.6",
"regex", "regex 1.5.5",
"seahash", "seahash",
"serde", "serde",
"serde_derive", "serde_derive",
@ -1297,7 +1323,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0650399a761c61e9691ccc878bce2608291f7c18d8f84d188e6e11748a5316c8" checksum = "0650399a761c61e9691ccc878bce2608291f7c18d8f84d188e6e11748a5316c8"
dependencies = [ dependencies = [
"lazy_static 0.2.11", "lazy_static 0.2.11",
"regex", "regex 0.2.11",
] ]
[[package]] [[package]]

View file

@ -21,8 +21,8 @@ features = ["sqlite"]
version = "1.4.0" version = "1.4.0"
[dependencies] [dependencies]
bart = "0.1.6" bart = "0.1.4"
bart_derive = "0.1.6" bart_derive = "0.1.4"
chrono = "0.4" chrono = "0.4"
clap = "2.31" clap = "2.31"
diff = "0.1" diff = "0.1"
@ -34,7 +34,7 @@ maplit = "1"
percent-encoding = "1.0" percent-encoding = "1.0"
r2d2 = "0.8" r2d2 = "0.8"
r2d2-diesel = "1.0.0" r2d2-diesel = "1.0.0"
regex = "0.2" regex = "1.5"
seahash = "3.0.5" seahash = "3.0.5"
serde = "1.0.0" serde = "1.0.0"
serde_derive = "1.0.0" serde_derive = "1.0.0"

View file

@ -28,11 +28,7 @@ pub fn render_markdown_for_fts(src: &str) -> String {
for event in p { for event in p {
match event { match event {
// As far as I understand this is a basic
// sanitizing to prevent HTML from
// appearing in page.
Text(text) => buf.push_str(&text.replace(is_html_special, " ")), Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
// Footnote links maybe?
End(Tag::Link(uri, _title)) => { End(Tag::Link(uri, _title)) => {
buf.push_str(" ("); buf.push_str(" (");
buf.push_str(&uri.replace(is_html_special, " ")); buf.push_str(&uri.replace(is_html_special, " "));