Skip to content
Permalink
5f4d693c7f
Go to file
 
 
Cannot retrieve contributors at this time
5 lines (3 sloc) 195 Bytes
'use strict';
const regex = '[^\\.\\s@:](?:[^\\s@:]*[^\\s@:\\.])?@[^\\.\\s@]+(?:\\.[^\\.\\s@]+)*';
module.exports = ({exact} = {}) => exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');
You can’t perform that action at this time.