咸鱼要翻身

6 lines
165 B

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