6 lines
165 B
JavaScript
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);
|
||
|
}
|