If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called
// baseado em https://gist.github.com/joaohcrangel/8bd48bcc40b9db63bef7201143303937 | |
export const cpf = (cpf: string) => { | |
const _cpf = cpf.replace(/[\s.-]*/g, ''); | |
let sum = 0; | |
let rest = 0; | |
if (_cpf.match(/([0-9])(\d\1{9})/)?.length) return false; | |
for (let i = 1; i <= 9; i += 1) { |
{"lastUpload":"2019-04-10T19:02:41.700Z","extensionVersion":"v3.2.8"} |