Skip to content

Commit 7469356

Browse files
committed
Fix regex
1 parent f9c64ab commit 7469356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function findEmail(_, atext, label, match) {
157157
// Not an expected previous character.
158158
!previous(match, true) ||
159159
// Label ends in not allowed character.
160-
/[_-\d]$/.test(label)
160+
/[-\d_]$/.test(label)
161161
) {
162162
return false
163163
}

0 commit comments

Comments
 (0)