Skip to content

Commit

Permalink
Merge pull request #291 from tkhshtsh0917/fix/chinese-normalization-p…
Browse files Browse the repository at this point in the history
…inyin_feature_test_failed

fix: fixed `chinese-normalization-pinyin` feature test failed
  • Loading branch information
curquiza authored May 30, 2024
2 parents 9234a07 + 7aa4d14 commit dc29b7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run tests with japanese-transliteration on
run: cargo test --verbose --features japanese-transliteration
- name: Run tests with chinese-normalization-pinyin on
run: cargo test --verbose --features chinese chinese-normalization-pinyin
run: cargo test --verbose --features chinese-normalization-pinyin
- name: Run tests with swedish-recomposition on
run: cargo test --verbose --features swedish-recomposition
- name: Run irg-kvariants tests
Expand Down
2 changes: 1 addition & 1 deletion charabia/src/normalizer/chinese.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl CharNormalizer for ChineseNormalizer {

with_tone.to_string()
}
None => kvariant, // e.g. 杤
None => kvariant.to_string(), // e.g. 杤
};

Some(kvariant.into())
Expand Down

0 comments on commit dc29b7c

Please sign in to comment.