Skip to content

Commit

Permalink
Fixes before release part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 24, 2024
1 parent bd299ce commit 03c9d2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
components: rustfmt, clippy
- name: Download Testing Data
run: curl https://raw.githubusercontent.com/vzhou842/profanity-check/master/profanity_check/data/clean_data.csv --output test.csv
- name: Test
run: cargo test --release --features width,context
- name: Test (context)
run: cargo test --release --features context
- name: Test (context, width)
run: cargo test --release --features context, width
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Install Trunk
Expand Down
1 change: 1 addition & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ impl BlockReason {
"Your message was held for severe profanity"
}
}
#[cfg(feature = "width")]
Self::Unbroken(_) => "Part of your message is too wide to display",
Self::Unsafe { .. } => "You have been temporarily restricted due to profanity/spam",
Self::Repetitious(_) => "Your message was too similar to recent messages",
Expand Down

0 comments on commit 03c9d2a

Please sign in to comment.