node-ejs-renderer/node_modules/validator/es/lib/isOctal.js
2024-06-09 13:55:01 -04:00

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);
}