diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7cc19a5..b97f115 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/matcher_rs/src/process/process_matcher.rs b/matcher_rs/src/process/process_matcher.rs index 44e6c06..5c07e0c 100644 --- a/matcher_rs/src/process/process_matcher.rs +++ b/matcher_rs/src/process/process_matcher.rs @@ -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()