mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
Fix regex for parsing linkedin array links
The second replace was incorrect, resulting in a link like `https://google.com]` which failed zod validation
This commit is contained in:
@ -23,4 +23,4 @@ export const parseCSV = async (string: string) => {
|
||||
* @returns
|
||||
*/
|
||||
export const parseArrayLikeCSVEntry = (csvEntry: string) =>
|
||||
csvEntry.replace(/^\[/, "").replace(/$]/, "").split(",");
|
||||
csvEntry.replace(/^\[/, "").replace(/\]$/, "").split(",");
|
||||
|
||||
Reference in New Issue
Block a user