forked from akai/readest
5 lines
114 B
TypeScript
5 lines
114 B
TypeScript
export const sanitizeString = (str?: string) => {
|
|
if (!str) return str;
|
|
return str.replace(/\u0000/g, '');
|
|
};
|