Files
orico-officialWebsite-ts-admin/src/utils/regexp/convertSeparators.ts
2025-03-26 11:00:21 +08:00

8 lines
229 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { cloneDeep } from "lodash-es";
//将中文逗号(,)和分号(;)替换为英文逗号(,)
export const convertSeparators = (str: string) => {
let strClone = cloneDeep(str);
return strClone.replace(//g, ",");
};