mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 18:21:28 +10:00
fix(import): LinkedIn Profile.csv parsing fixes
This commit is contained in:
@ -12,3 +12,11 @@ export const parseCSV = async (string: string) => {
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Parser for cases when we receive an array like structure f.e. a in the LinkedIn Profile.csv import
|
||||
* @param csvEntry array-like entry such as [TAG:https://some.link,TAG:https://someother.link]
|
||||
* @returns
|
||||
*/
|
||||
export const parseArrayLikeCSVEntry = (csvEntry: string) =>
|
||||
csvEntry.replace(/^\[/, "").replace(/$\]/, "").split(",");
|
||||
|
||||
Reference in New Issue
Block a user