| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 26db6db commit 9c4e7a5
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27475,8 +27475,12 @@ function findUrl(_, protocol, domain, path, match) { | |||
| 27475 | 27475 | * @param {RegExpMatchObject} match | |
| 27476 | 27476 | */ | |
| 27477 | 27477 | function findEmail(_, atext, label, match) { | |
| 27478 | - // Not an expected previous character. | ||
| 27479 | - if (!previous(match, true) || /[_-]$/.test(label)) { | ||
| 27478 | + if ( | ||
| 27479 | + // Not an expected previous character. | ||
| 27480 | + !previous(match, true) || | ||
| 27481 | + // Label ends in not allowed character. | ||
| 27482 | + /[_-\d]$/.test(label) | ||
| 27483 | + ) { | ||
| 27480 | 27484 | return false | |
| 27481 | 27485 | } | |
| 27482 | 27486 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments