(re_str)
| 115 | return arr.join('-') |
| 116 | } |
| 117 | function getRegexp(re_str) { |
| 118 | let regParts = re_str.match(/^\/(.*?)\/([gims]*)$/) |
| 119 | if (regParts) { |
| 120 | return new RegExp(regParts[1], regParts[2]) |
| 121 | } else { |
| 122 | return new RegExp(re_str) |
| 123 | } |
| 124 | } |
| 125 | // 通知 |
| 126 | async function notify(title, subt, desc, opts) { |
| 127 | $.msg(title, subt, desc, opts) |