lacona-phrase-phone-number
Lacona Phrases for matching phone numbers
Installation
npm install lacona-phrase-phone-number
Usage
/** @jsx createElement */ const parser = grammar: <sequence> <literal text='call ' /> <PhoneNumber /> </sequence> parser/* [{ words: [ {text: 'call ', input: true}, {text: '+1 617 8675309', input: true, argument='phone number'}}] */
Reference
PhoneNumber
Matches standard phone numbers. These can optional start with a +, and then can have parenthesis and dashes. The actual structure is not mandated.
Result
String
- the phone numbers, as input (with +, parens, dashes, and all)
Props
argument
: String - the text for the label