| 1 |
import { Matcher } from './matcher'; |
| 2 |
import { Match } from '../match/match'; |
| 3 |
/** |
| 4 |
* @class Autolinker.matcher.Email |
| 5 |
* @extends Autolinker.matcher.Matcher |
| 6 |
* |
| 7 |
* Matcher to find email matches in an input string. |
| 8 |
* |
| 9 |
* See this class's superclass ({@link Autolinker.matcher.Matcher}) for more details. |
| 10 |
*/ |
| 11 |
export declare class EmailMatcher extends Matcher { |
| 12 |
/** |
| 13 |
* Valid characters that can be used in the "local" part of an email address, |
| 14 |
* i.e. the "name" part of "[email protected]" |
| 15 |
*/ |
| 16 |
protected localPartCharRegex: RegExp; |
| 17 |
/** |
| 18 |
* Stricter TLD regex which adds a beginning and end check to ensure |
| 19 |
* the string is a valid TLD |
| 20 |
*/ |
| 21 |
protected strictTldRegex: RegExp; |
| 22 |
/** |
| 23 |
* @inheritdoc |
| 24 |
*/ |
| 25 |
parseMatches(text: string): Match[]; |
| 26 |
} |