检查字符串中是否有表情符号-JavaScript开发

时间:2021-05-26 03:50:06
【文件属性】:
文件名称:检查字符串中是否有表情符号-JavaScript开发
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 03:50:06
JavaScript CSS has-emoji检查字符串中是否有任何表情符号。当您需要防止用户输入(例如,用户名)中的表情符号时,这很有用。 安装$ npm install has-emoji用法const hasEmoji = has-emoji检查字符串中是否有任何表情符号。当您需要防止用户输入中的表情符号(例如,用户名)时,这很有用。 安装$ npm install has-emoji用法const hasEmoji = require('has-emoji'); hasEmoji('Unicorn:unicorn:'); // => true hasEmoji('Cat'); // =>假相关@ sindresorhus / is-类型检查值许可证MIT:copyright:Sindre Sorhus
【文件预览】:
has-emoji-main
----index.js(119B)
----test.js(225B)
----package.json(648B)
----index.test-d.ts(112B)
----readme.md(473B)
----.github()
--------funding.yml(91B)
--------workflows()
----license(1KB)
----index.d.ts(241B)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)

网友评论