Skip to content

Commit

Permalink
Update emojicon
Browse files Browse the repository at this point in the history
Use custom flavored emoji shortcodes
  • Loading branch information
mominul committed Jan 19, 2024
1 parent 2039b30 commit 0d11ba0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ codegen-units = 1

[dependencies]
ahash = { version = "0.8", features = ["serde"] }
emojicon = "0.3"
emojicon = { version = "0.4", features = ["custom"] }
serde_json = "1.0"
regex = "~1.9" # For maintaining MSRV
stringplus = "0.1"
Expand Down
6 changes: 6 additions & 0 deletions src/phonetic/suggestion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ mod tests {
["চুল", "😎", "🆒", "চোল", "চল", "চূল", "ছুল", "ছোল", "ছল", "ছুঁল"]
);

suggestion.suggest("chup", &data, &mut selections, &config);
assert_eq!(
suggestion.suggestions,
["ছুপ", "🫢", "চুপ"]
);

suggestion.suggest(".", &data, &mut selections, &config);
assert_eq!(suggestion.suggestions, ["।"]);
}
Expand Down

0 comments on commit 0d11ba0

Please sign in to comment.