Function type for masking sensitive data in spans before export.
Object containing the data to be masked
The data that should be masked
The masked data (can be of any type)
const maskFunction: MaskFunction = ({ data }) => { if (typeof data === 'string') { return data.replace(/password=\w+/g, 'password=***'); } return data;}; Copy
const maskFunction: MaskFunction = ({ data }) => { if (typeof data === 'string') { return data.replace(/password=\w+/g, 'password=***'); } return data;};
Function type for masking sensitive data in spans before export.