diff options
Diffstat (limited to 'includes/external/addressbook/node_modules/validator/lib/isFullWidth.js')
-rw-r--r-- | includes/external/addressbook/node_modules/validator/lib/isFullWidth.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/validator/lib/isFullWidth.js b/includes/external/addressbook/node_modules/validator/lib/isFullWidth.js new file mode 100644 index 0000000..1960f13 --- /dev/null +++ b/includes/external/addressbook/node_modules/validator/lib/isFullWidth.js @@ -0,0 +1,19 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isFullWidth; +exports.fullWidth = void 0; + +var _assertString = _interopRequireDefault(require("./util/assertString")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var fullWidth = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; +exports.fullWidth = fullWidth; + +function isFullWidth(str) { + (0, _assertString.default)(str); + return fullWidth.test(str); +}
\ No newline at end of file |