Commit 93816a26 authored by zhangzhe's avatar zhangzhe

修改bug

parent be186d53
......@@ -38,7 +38,7 @@
} else {
// non surrogate
if (0x2100 <= hs && hs <= 0x27ff) {
containsEmoji = YES;
// containsEmoji = YES;
}else if (0x2B05 <= hs && hs <= 0x2b07) {
containsEmoji = YES;
} else if (0x2934 <= hs && hs <= 0x2935) {
......
......@@ -518,7 +518,17 @@ extension SHInputController: UITextViewDelegate, SHInputTextViewDelegate
// MARK: 文字将要变化
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool
{
if self.hasEmoji(text: text)
// let selectedRange = textView.markedTextRange;
//
// if !(selectedRange?.isEmpty ?? false)
// {
// if self.hasEmoji(text: text)
// {
// return false
// }
// }
if text.isContainEmoji()
{
return false
}
......
......@@ -62,7 +62,7 @@ class SHRecordListViewController: SHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
let s:Bool = "asdasdas🐂aadsasddadas".isContainEmoji()
// let s:Bool = "asdasdas🐂aadsasddadas".isContainEmoji()
SHCloudManager.shared.getAllFolderDataSource { (result, models) in
if result{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment