Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
ShorthandMaster
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
ShorthandMaster
Commits
93816a26
Commit
93816a26
authored
Sep 30, 2020
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
be186d53
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
NSString+Extensions.m
ShorthandMaster/Extensions/OC/NSString+Extensions.m
+1
-1
SHInputController.swift
ShorthandMaster/Input/Controller/SHInputController.swift
+11
-1
SHRecordListViewController.swift
ShorthandMaster/Record/SHRecordListViewController.swift
+1
-1
No files found.
ShorthandMaster/Extensions/OC/NSString+Extensions.m
View file @
93816a26
...
...
@@ -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
)
{
...
...
ShorthandMaster/Input/Controller/SHInputController.swift
View file @
93816a26
...
...
@@ -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
}
...
...
ShorthandMaster/Record/SHRecordListViewController.swift
View file @
93816a26
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment