Verify whether the text contains Taobao passphrase, or a Taobao passphrase like message key
初步验证文本是否包含淘口令,或类淘口令信息密钥 for CommonJS
Using npm:
$ npm install is-tbpass
Using yarn:
$ yarn add is-tbpass
const { isTBPass } = require('is-tbpass')
// true
console.log(isTBPass("裤装$2EiVYhmJlSc$2019新款夏"))
const { getTBPass } = require('is-tbpass')
// ¢SftOYhmrepl¢
console.log(getTBPass("椱ァ製这段ァ描述¢SftOYhmrepl¢后到?◇綯℡寳"))
// $2EiVYhmJlSc$,₳SftOYhmrepl₳
console.log(getTBPass("裤装$2EiVYhmJlSc$2019新款夏₳SftOYhmrepl₳时尚"))