API/api.medcify.app/node_modules/validator/es/lib/isVariableWidth.js

7 lines
256 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
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);
}