Skip to content

Commit

Permalink
fix runtime_build not dfa
Browse files Browse the repository at this point in the history
  • Loading branch information
Lips7 committed Jul 16, 2024
1 parent 8055b72 commit be7ce9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ jobs:
run: cargo test -p matcher_rs --verbose --no-default-features --features "prebuilt"
- name: Run tests runtime_build
run: cargo test -p matcher_rs --verbose --no-default-features --features "runtime_build"
- name: Run tests prebuilt and dfa
run: cargo test -p matcher_rs --verbose --no-default-features --features "prebuilt,dfa"
- name: Run tests runtime_build and dfa
run: cargo test -p matcher_rs --verbose --no-default-features --features "runtime_build,dfa"
- name: Run tests serde
run: cargo test -p matcher_rs --verbose --features "serde"
run: cargo test -p matcher_rs --verbose --no-default-features --features "prebuilt,dfa,serde"
- name: Run doc
run: cargo doc
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion matcher_rs/src/process/process_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ pub fn get_process_matcher(smt_bit: SimpleMatchType) -> Arc<(Vec<&'static str>,
),
),
#[cfg(not(feature = "dfa"))]
SimpleMatchType::TextDelete | SimpleMatchType::TextDelete => (
SimpleMatchType::TextDelete | SimpleMatchType::Normalize => (
process_dict.iter().map(|(_, &val)| val).collect(),
ProcessMatcher::Chinese(
CharwiseDoubleArrayAhoCorasickBuilder::new()
Expand Down

0 comments on commit be7ce9f

Please sign in to comment.