Switch from grapheme-splitter to graphemer (#11037)
This commit is contained in:
parent
6ed81dc1a5
commit
c47b587225
5 changed files with 9 additions and 4 deletions
|
@ -28,7 +28,7 @@ import { IContent } from "matrix-js-sdk/src/models/event";
|
|||
import { Optional } from "matrix-events-sdk";
|
||||
import _Linkify from "linkify-react";
|
||||
import escapeHtml from "escape-html";
|
||||
import GraphemeSplitter from "grapheme-splitter";
|
||||
import GraphemeSplitter from "graphemer";
|
||||
|
||||
import {
|
||||
_linkifyElement,
|
||||
|
|
|
@ -19,7 +19,7 @@ import EMOJIBASE_REGEX from "emojibase-regex";
|
|||
import { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
|
||||
import { Room } from "matrix-js-sdk/src/models/room";
|
||||
import GraphemeSplitter from "grapheme-splitter";
|
||||
import GraphemeSplitter from "graphemer";
|
||||
|
||||
import AutocompleteWrapperModel, { GetAutocompleterComponent, UpdateCallback, UpdateQuery } from "./autocomplete";
|
||||
import { unicodeToShortcode } from "../HtmlUtils";
|
||||
|
|
|
@ -21,7 +21,7 @@ limitations under the License.
|
|||
* @param text the plaintext to put in the user's clipboard
|
||||
*/
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
import GraphemeSplitter from "grapheme-splitter";
|
||||
import GraphemeSplitter from "graphemer";
|
||||
|
||||
export async function copyPlaintext(text: string): Promise<boolean> {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue