commit
d927cb63c6
|
@ -73,11 +73,11 @@ export class Payload {
|
||||||
const firstName = nameInformation['gn'];
|
const firstName = nameInformation['gn'];
|
||||||
const lastName = nameInformation['fn'];
|
const lastName = nameInformation['fn'];
|
||||||
|
|
||||||
const transliteratedFirstName = nameInformation['gnt'];
|
const transliteratedFirstName = nameInformation['gnt'].replaceAll('<', ' ');
|
||||||
const transliteratedLastName = nameInformation['fnt'];
|
const transliteratedLastName = nameInformation['fnt'].replaceAll('<', ' ');
|
||||||
|
|
||||||
// Check if name contains non-latin characters
|
// Check if name contains non-latin characters
|
||||||
const nameRegex = new RegExp('^(\\p{Script=Latin}|[ -\'`´])+$', 'u');
|
const nameRegex = new RegExp('^[\\p{Script=Latin}\\p{P}\\p{M}\\p{Z}]+$', 'u');
|
||||||
|
|
||||||
let name: string;
|
let name: string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue