OCA_Backend/api/node_modules/validator/es/lib/isOctal.js

6 lines
165 B
JavaScript
Raw Normal View History

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