Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

lacona-phrase-email

Build Status

Lacona Phrases for matching an email-related information

Installation

npm install lacona-phrase-email

Usage

/** @jsx createElement */
import { createElement, Phrase } from 'lacona-phrase'
import { EmailAddress } from 'lacona-phrase-email'
import { Parser } from 'lacona'

const parser = new Parser({
  grammar: (
    <sequence>
      <literal text='email ' />
      <EmailAddress />
    </sequence>
  )
})

parser.parseArray('email app@lacona.io')
/* [{
  words: [
    {text: 'email ', input: true},
    {text: 'app@lacona.io', input: true, argument='email'}
}] */

Reference

EmailAddress

Matches standard user@domain.tld email addresses.

Result

String - the email address

Props

  • argument: String - the text for the label

About

Lacona Phrase for matching an email address

Resources

License

Releases

No releases published
You can’t perform that action at this time.