UNPKG

libphonenumber-js

Version:

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript

10 lines (8 loc) 261 B
import { describe, it } from 'mocha' import { expect } from 'chai' import parseDigits from './parseDigits.js' describe('parseDigits', () => { it('should parse digits', () => { expect(parseDigits('+٤٤٢٣٢٣٢٣٤')).to.equal('442323234') }) })