mirror of
https://github.com/zebrajr/Reactive-Resume.git
synced 2025-12-06 00:20:04 +01: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:
parent
cd21860535
commit
a23dbfa3df
|
|
@ -23,4 +23,4 @@ export const parseCSV = async (string: string) => {
|
|||
* @returns
|
||||
*/
|
||||
export const parseArrayLikeCSVEntry = (csvEntry: string) =>
|
||||
csvEntry.replace(/^\[/, "").replace(/$]/, "").split(",");
|
||||
csvEntry.replace(/^\[/, "").replace(/\]$/, "").split(",");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user