mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-18 05:10:34 +00:00
Fix test 2
This commit is contained in:
parent
407a09e86f
commit
db9fd11b08
|
@ -32,6 +32,7 @@ pub fn scrape_text_for_mentions(text: &str) -> Vec<MentionData> {
|
|||
out.into_iter().unique().collect()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::utils::mention::scrape_text_for_mentions;
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ pub(crate) fn slurs_vec_to_str(slurs: &[&str]) -> String {
|
|||
[start, combined].concat()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::utils::slurs::{remove_slurs, slur_check, slurs_vec_to_str};
|
||||
use regex::RegexBuilder;
|
||||
|
|
Loading…
Reference in a new issue