bf24937ee238950f684d0cdab360b424c80f6b60.js 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. System.register(["cc"], function (_export, _context) {
  2. "use strict";
  3. var _cclegacy, RegexUtil, _crd;
  4. _export("RegexUtil", void 0);
  5. return {
  6. setters: [function (_cc) {
  7. _cclegacy = _cc.cclegacy;
  8. }],
  9. execute: function () {
  10. _crd = true;
  11. _cclegacy._RF.push({}, "dec9bVPigFCmKy5NVk+0y7h", "RegexUtil", undefined);
  12. /*
  13. * @Author: dgflash
  14. * @Date: 2022-07-26 15:29:57
  15. * @LastEditors: dgflash
  16. * @LastEditTime: 2022-09-02 12:08:25
  17. */
  18. /** 正则工具 */
  19. _export("RegexUtil", RegexUtil = class RegexUtil {
  20. /**
  21. * 判断字符是否为双字节字符(如中文字符)
  22. * @param string 原字符串
  23. */
  24. static isDoubleWord(string) {
  25. return /[^\x00-\xff]/.test(string);
  26. }
  27. });
  28. _cclegacy._RF.pop();
  29. _crd = false;
  30. }
  31. };
  32. });
  33. //# sourceMappingURL=bf24937ee238950f684d0cdab360b424c80f6b60.js.map