mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
8 lines
289 B
JavaScript
8 lines
289 B
JavaScript
'use strict'
|
|
|
|
export function isEmail(string) {
|
|
// This is a bit of a weak test for an email, but you really can't win them all
|
|
// http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address
|
|
return !!string && string.match(/.*@.*\..*/);
|
|
}
|