We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a898bf0 + f489fa2 commit 9d32276Copy full SHA for 9d32276
src/libs/SegmentedMessage.ts
@@ -2,6 +2,7 @@ import GraphemeSplitter from 'grapheme-splitter';
2
3
import Segment from './Segment';
4
import EncodedChar from './EncodedChar';
5
+import UnicodeToGsm from './UnicodeToGSM';
6
7
type SmsEncoding = 'GSM-7' | 'UCS-2';
8
@@ -91,7 +92,7 @@ export class SegmentedMessage {
91
92
_hasAnyUCSCharacters(graphemes: string[]): boolean {
93
let result = false;
94
for (const grapheme of graphemes) {
- if (grapheme.length >= 2) {
95
+ if (grapheme.length >= 2 || (grapheme.length === 1 && !UnicodeToGsm[grapheme.charCodeAt(0)])) {
96
result = true;
97
break;
98
}
0 commit comments