From 1b5a77d5a78defbdec475eded1addfd1659010d9 Mon Sep 17 00:00:00 2001 From: fengxxc Date: Mon, 19 Aug 2024 11:22:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20windows=E4=B8=8B=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E8=8B=B1=E6=96=87=E5=86=92=E5=8F=B7=E5=87=BA?= =?UTF-8?q?=E9=94=99=E7=9A=84bug(=E4=BD=BF=E7=94=A8=E2=88=B6=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- README.md | 6 +++--- format/format.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 846b348..a91baa2 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BUILD_ENV := CGO_ENABLED=0 APP=wechatmp2markdown -VERSION=v1.1.7 +VERSION=v1.1.8 # linux or mac 环境编译 # make [cmd] diff --git a/README.md b/README.md index 2783d48..75410ea 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下 > ``` > "<" -> "≺" > ">" -> "≻" -> ":" -> ":" +> ":" -> "∶" > """ -> "“" > "/" -> "∕" > "\" -> "∖" @@ -83,7 +83,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下 > "*" -> "⁎" > ``` -> 在linux环境下,使用CLI模式,需要为程序赋予可执行与写权限,例如:` chmod +xw wechatmp2markdown-v1.1.7_linux_amd64` +> 在linux环境下,使用CLI模式,需要为程序赋予可执行与写权限,例如:` chmod +xw wechatmp2markdown-v1.1.8_linux_amd64` ### web server 模式 通过web服务使用 @@ -105,7 +105,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下 浏览器访问:`localhost:8964?url=https://mp.weixin.qq.com/s/a=1&b=2&image=save`, 将返回一个zip文件 -> 在linux环境下,使用web server模式,需要为程序赋予可执行权限,例如:` chmod +x wechatmp2markdown-v1.1.7_linux_amd64` +> 在linux环境下,使用web server模式,需要为程序赋予可执行权限,例如:` chmod +x wechatmp2markdown-v1.1.8_linux_amd64` ## 开发 go 1.20 diff --git a/format/format.go b/format/format.go index ba2bc4f..1e48882 100644 --- a/format/format.go +++ b/format/format.go @@ -39,7 +39,7 @@ func legalizationFilenameForWindows(name string) string { if invalidChars.MatchString(name) { name = strings.ReplaceAll(name, "<", "≺") name = strings.ReplaceAll(name, ">", "≻") - name = strings.ReplaceAll(name, ":", ":") + name = strings.ReplaceAll(name, ":", "∶") name = strings.ReplaceAll(name, "\"", "“") name = strings.ReplaceAll(name, "/", "∕") name = strings.ReplaceAll(name, "\\", "∖")