Skip to content

Commit

Permalink
Revert "fix(plugin-apipost): 部分curl解析错误"
Browse files Browse the repository at this point in the history
This reverts commit 621876b.
  • Loading branch information
Leon406 committed Dec 19, 2022
1 parent ffba7d9 commit 9750f2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fun String.cookieParse() =
fun String.parseCurl() =
trim()
// 去掉浏览器多余的分割符
.replace("""[\^\\]$""".toRegex(), "")
.replace("""[\^\\]""".toRegex(), "")
.split("""\n|\r\n""".toRegex())
.map { it.trim() }
.fold(Request(this)) { acc, s ->
Expand Down

0 comments on commit 9750f2b

Please sign in to comment.