fix(common): parentheses and single quotes support to curl imports (#3509)
This commit is contained in:
@@ -49,7 +49,12 @@ const parseURL = (urlText: string | number) =>
|
|||||||
urlText,
|
urlText,
|
||||||
O.fromNullable,
|
O.fromNullable,
|
||||||
// preprocess url string
|
// preprocess url string
|
||||||
O.map((u) => u.toString().replaceAll(/[^a-zA-Z0-9_\-./?&=:@%+#,;\s]/g, "")),
|
O.map((u) =>
|
||||||
|
u
|
||||||
|
.toString()
|
||||||
|
.replace(/^'|'$/g, "")
|
||||||
|
.replaceAll(/[^a-zA-Z0-9_\-./?&=:@%+#,;()'\s]/g, "")
|
||||||
|
),
|
||||||
O.filter((u) => u.length > 0),
|
O.filter((u) => u.length > 0),
|
||||||
O.chain((u) =>
|
O.chain((u) =>
|
||||||
pipe(
|
pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user