Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
twitter-text
/
dist
/
esm
/
Filename :
getUnicodeTextLength.js
back
Copy
import "core-js/modules/es6.regexp.replace"; // Copyright 2018 Twitter, Inc. // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 /** * Copied from https://github.com/twitter/twitter-text/blob/master/js/twitter-text.js */ import nonBmpCodePairs from './regexp/nonBmpCodePairs'; export default function (text) { return text.replace(nonBmpCodePairs, ' ').length; }