mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
Et2SelectEmail: Fix pasting in merge placeholders didn't do anything
This commit is contained in:
parent
4a48fc74c7
commit
4ab788acc1
@ -290,8 +290,9 @@ export class Et2SelectEmail extends Et2Select
|
||||
selection.deleteFromDocument();
|
||||
}
|
||||
|
||||
let preg = this.allowPlaceholder ? IsEmail.EMAIL_PLACEHOLDER_PREG : IsEmail.EMAIL_PREG;
|
||||
// Trim line start / end anchors off validation regex, make global
|
||||
let regex = new RegExp(IsEmail.EMAIL_PREG.toString().substring(2, IsEmail.EMAIL_PREG.toString().length - 3), 'g');
|
||||
let regex = new RegExp(preg.toString().substring(2, preg.toString().length - 3), 'g');
|
||||
let values = paste.match(regex);
|
||||
values.forEach(v =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user