export function convertMatchableString ( original ) { return ( original . replace ( /\s/g , ' ' ) . replace ( /’/g , "'" ) . replace ( /[”“]/g , '"' ) . replace ( /｀/g , '`' ) . replace ( /￥/g , '¥' ) . replace ( /−/g , '-' ) . replace ( /〜/g , '~' ) . replace ( /[！-｝]/g , ( str ) => String . fromCharCode ( str . charCodeAt ( 0 ) - 0xfee0 ) ) . toLowerCase ( ) ) ; }