Skip to content

Commit

Permalink
fix(tracker): add "plus" to email detecting regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
nicooprat authored Mar 12, 2024
1 parent b8eca25 commit c4d8a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracker/tracker/src/main/app/sanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class Sanitizer {
data = data.replace(/\d/g, '0')
}
if (this.options.obscureTextEmails) {
data = data.replace(/^\w+([.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (email) => {
data = data.replace(/^\w+([+.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (email) => {
const [name, domain] = email.split('@')
const [domainName, host] = domain.split('.')
return `${stars(name)}@${stars(domainName)}.${stars(host)}`
Expand Down

0 comments on commit c4d8a2d

Please sign in to comment.