From b77fac75643cfe7a03098f10ff9ee729e35ae14f Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Sat, 8 Jun 2024 21:34:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=80=D1=83=D1=81=D1=81=D0=BA=D0=BE=D0=B3=D0=BE=20=D1=8F=D0=B7?= =?UTF-8?q?=D1=8B=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- go.mod | 2 +- main.go | 4 ++-- mdproc/headings.go | 2 +- mdproc/hugo.go | 4 ++-- mdproc/hugo_test.go | 8 ++++---- mdproc/links.go | 2 +- mdproc/preproc.go | 2 +- mdproc/preproc_test.go | 4 ++-- reader.go | 2 +- writer.go | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 4d739f2..52c10d4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Go Report Card](https://goreportcard.com/badge/github.com/n0x1m/md2gmi)](https://goreportcard.com/report/github.com/n0x1m/md2gmi) -[![GoDoc](https://godoc.org/github.com/n0x1m/md2gmi?status.svg)](https://godoc.org/github.com/n0x1m/md2gmi) +[![Go Report Card](https://goreportcard.com/badge/gitrepo.ru/neonxp/md2gmi)](https://goreportcard.com/report/gitrepo.ru/neonxp/md2gmi) +[![GoDoc](https://godoc.org/gitrepo.ru/neonxp/md2gmi?status.svg)](https://godoc.org/gitrepo.ru/neonxp/md2gmi) # md2gmi @@ -25,7 +25,7 @@ Usage of ./md2gmi: ### Example - go get github.com/n0x1m/md2gmi + go get gitrepo.ru/neonxp/md2gmi cat file.md | md2gmi md2gmi -i file.md -o file.gmi diff --git a/go.mod b/go.mod index 38d9d89..0a0c308 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/n0x1m/md2gmi +module gitrepo.ru/neonxp/md2gmi go 1.16 diff --git a/main.go b/main.go index 47aea88..75fc920 100644 --- a/main.go +++ b/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/n0x1m/md2gmi/mdproc" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/mdproc" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func main() { diff --git a/mdproc/headings.go b/mdproc/headings.go index c8d6207..70995c5 100644 --- a/mdproc/headings.go +++ b/mdproc/headings.go @@ -4,7 +4,7 @@ import ( "bytes" "regexp" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func FormatHeadings(in chan pipe.StreamItem) chan pipe.StreamItem { diff --git a/mdproc/hugo.go b/mdproc/hugo.go index 25b37ed..213d9a3 100644 --- a/mdproc/hugo.go +++ b/mdproc/hugo.go @@ -5,7 +5,7 @@ import ( "fmt" "regexp" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func RemoveFrontMatter(in chan pipe.StreamItem) chan pipe.StreamItem { @@ -15,7 +15,7 @@ func RemoveFrontMatter(in chan pipe.StreamItem) chan pipe.StreamItem { // delete the entire front matter re := regexp.MustCompile(`---.*---`) // but parse out the title as we want to reinject it - re2 := regexp.MustCompile(`title:[ "]*([a-zA-Z0-9 :!'@#$%^&*)(]+)["]*`) + re2 := regexp.MustCompile(`title:[ "]*([а-яА-Яa-zA-Z0-9 :!'@#$%^&*)(]+)["]*`) for b := range in { data := b.Payload() diff --git a/mdproc/hugo_test.go b/mdproc/hugo_test.go index a2ab791..cab1cdf 100644 --- a/mdproc/hugo_test.go +++ b/mdproc/hugo_test.go @@ -3,8 +3,8 @@ package mdproc_test import ( "testing" - "github.com/n0x1m/md2gmi/mdproc" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/mdproc" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func TestMdDocument2Gmi(t *testing.T) { @@ -23,7 +23,7 @@ nox, Latin "night; darkness" -"-"- ` + "```" + ` -[Gemini](gemini://nox.im) · [RSS](/index.xml) · [About](/about) · [Github](https://github.com/n0x1m) +[Gemini](gemini://nox.im) · [RSS](/index.xml) · [About](/about) · [Github](https://gitrepo.ru/neonxp) Contact me via ` + "`" + `dre@nox.im` + "`" + `. You may use my [age](/snippets/actually-good-encryption/) public key to send me files securely: ` + "`" + `age1vpyptw64mz2vhtj7tvfh9saj0y8zy8fguety5n3wpmwzpkn0rd6swh02an` + "`" + `. @@ -52,7 +52,7 @@ Gemini[1] · RSS[2] · About[3] · Github[4] => gemini://nox.im 1: Gemini => /index.xml 2: RSS => /about 3: About -=> https://github.com/n0x1m 4: Github +=> https://gitrepo.ru/neonxp 4: Github Contact me via ` + "`" + `dre@nox.im` + "`" + `. You may use my age[1] public key to send me files securely: ` + "`" + `age1vpyptw64mz2vhtj7tvfh9saj0y8zy8fguety5n3wpmwzpkn0rd6swh02an` + "`" + `. diff --git a/mdproc/links.go b/mdproc/links.go index 10f3d7d..81d8588 100644 --- a/mdproc/links.go +++ b/mdproc/links.go @@ -5,7 +5,7 @@ import ( "fmt" "regexp" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func FormatLinks(in chan pipe.StreamItem) chan pipe.StreamItem { diff --git a/mdproc/preproc.go b/mdproc/preproc.go index 1d1a1a5..e47a32a 100644 --- a/mdproc/preproc.go +++ b/mdproc/preproc.go @@ -4,7 +4,7 @@ import ( "bytes" "regexp" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) // state function. diff --git a/mdproc/preproc_test.go b/mdproc/preproc_test.go index 2c306bb..c59eb1b 100644 --- a/mdproc/preproc_test.go +++ b/mdproc/preproc_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/n0x1m/md2gmi/mdproc" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/mdproc" + "gitrepo.ru/neonxp/md2gmi/pipe" ) const ( diff --git a/reader.go b/reader.go index 2bb2757..e2690e4 100644 --- a/reader.go +++ b/reader.go @@ -6,7 +6,7 @@ import ( "io" "os" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func reader(in string) (io.Reader, error) { diff --git a/writer.go b/writer.go index 415eef7..ebd3af0 100644 --- a/writer.go +++ b/writer.go @@ -5,7 +5,7 @@ import ( "io" "os" - "github.com/n0x1m/md2gmi/pipe" + "gitrepo.ru/neonxp/md2gmi/pipe" ) func writer(out string) (io.Writer, error) {