Skip to content

Commit

Permalink
Merge pull request #2938 from Lotsamocha01/Fix-TLD-Length
Browse files Browse the repository at this point in the history
Fix tld length
  • Loading branch information
wobba committed Apr 28, 2023
2 parents 072cf4e + de3951c commit 78787a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ export class TemplateService implements ITemplateService {

if (!isEmpty(expr)) {

const matches = expr.match(/([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})/gi);
const matches = expr.match(/([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,63})/gi);
if (matches) {
return matches[0]; // Return the full match
} else {
Expand Down

0 comments on commit 78787a3

Please sign in to comment.