fix(tracker): add "plus" to email detecting regexp
This commit is contained in:
parent
b8eca2516b
commit
c4d8a2d2a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue