OCA_Backend/api/node_modules/validator/es/lib/isVariableWidth.js
2022-01-22 19:06:44 +05:30

7 lines
256 B
JavaScript

import assertString from './util/assertString';
import { fullWidth } from './isFullWidth';
import { halfWidth } from './isHalfWidth';
export default function isVariableWidth(str) {
assertString(str);
return fullWidth.test(str) && halfWidth.test(str);
}