pub fn beep(target: &str) -> CredsResult<()> {
    if RE_PROFAINITY.is_match(&target) {
        Err(CredsError::ProfainityError)
    } else {
        Ok(())
    }
}
/// Check if a string contains profainity
Check if a string contains profainity
Check if a string contains profainity
pub fn beep(target: &str) -> CredsResult<()> {
    if RE_PROFAINITY.is_match(&target) {
        Err(CredsError::ProfainityError)
    } else {
        Ok(())
    }
}
pub fn beep ( target : & str ) -> CredsResult < ( ) > { if RE_PROFAINITY . is_match ( & target ) { Err ( CredsError :: ProfainityError ) } else { Ok ( ( ) ) } }
Check if a string contains profainity
Check if a string contains profainity
target
&str
target
&str