API/api.medcify.app/node_modules/validator/es/lib/isOctal.js
2022-09-26 11:41:44 +05:30

6 lines
165 B
JavaScript

import assertString from './util/assertString';
var octal = /^(0o)?[0-7]+$/i;
export default function isOctal(str) {
assertString(str);
return octal.test(str);
}