aboutsummaryrefslogtreecommitdiff
path: root/pkg/markup
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/markup')
-rw-r--r--pkg/markup/markdown.go4
-rw-r--r--pkg/markup/markdown_test.go4
-rw-r--r--pkg/markup/markup.go6
-rw-r--r--pkg/markup/markup_test.go4
-rw-r--r--pkg/markup/sanitizer.go2
-rw-r--r--pkg/markup/sanitizer_test.go2
6 files changed, 11 insertions, 11 deletions
diff --git a/pkg/markup/markdown.go b/pkg/markup/markdown.go
index 1f055549..77fb6dbe 100644
--- a/pkg/markup/markdown.go
+++ b/pkg/markup/markdown.go
@@ -14,8 +14,8 @@ import (
"github.com/russross/blackfriday"
- "github.com/gogits/gogs/pkg/setting"
- "github.com/gogits/gogs/pkg/tool"
+ "github.com/gogs/gogs/pkg/setting"
+ "github.com/gogs/gogs/pkg/tool"
)
// IsMarkdownFile reports whether name looks like a Markdown file based on its extension.
diff --git a/pkg/markup/markdown_test.go b/pkg/markup/markdown_test.go
index 15a66b81..ee743452 100644
--- a/pkg/markup/markdown_test.go
+++ b/pkg/markup/markdown_test.go
@@ -12,8 +12,8 @@ import (
"github.com/russross/blackfriday"
. "github.com/smartystreets/goconvey/convey"
- . "github.com/gogits/gogs/pkg/markup"
- "github.com/gogits/gogs/pkg/setting"
+ . "github.com/gogs/gogs/pkg/markup"
+ "github.com/gogs/gogs/pkg/setting"
)
func Test_IsMarkdownFile(t *testing.T) {
diff --git a/pkg/markup/markup.go b/pkg/markup/markup.go
index b9682731..b8e1519d 100644
--- a/pkg/markup/markup.go
+++ b/pkg/markup/markup.go
@@ -14,8 +14,8 @@ import (
"github.com/Unknwon/com"
"golang.org/x/net/html"
- "github.com/gogits/gogs/pkg/setting"
- "github.com/gogits/gogs/pkg/tool"
+ "github.com/gogs/gogs/pkg/setting"
+ "github.com/gogs/gogs/pkg/tool"
)
// IsReadmeFile reports whether name looks like a README file based on its extension.
@@ -49,7 +49,7 @@ var (
// IssueAlphanumericPattern matches string that references to an alphanumeric issue, e.g. ABC-1234
IssueAlphanumericPattern = regexp.MustCompile(`( |^|\(|\[)[A-Z]{1,10}-[1-9][0-9]*\b`)
// CrossReferenceIssueNumericPattern matches string that references a numeric issue in a difference repository
- // e.g. gogits/gogs#12345
+ // e.g. gogs/gogs#12345
CrossReferenceIssueNumericPattern = regexp.MustCompile(`( |^)[0-9a-zA-Z-_\.]+/[0-9a-zA-Z-_\.]+#[0-9]+\b`)
// Sha1CurrentPattern matches string that represents a commit SHA, e.g. d8a994ef243349f321568f9e36d5c3f444b99cae
diff --git a/pkg/markup/markup_test.go b/pkg/markup/markup_test.go
index b741cc5d..97250d6c 100644
--- a/pkg/markup/markup_test.go
+++ b/pkg/markup/markup_test.go
@@ -10,8 +10,8 @@ import (
. "github.com/smartystreets/goconvey/convey"
- . "github.com/gogits/gogs/pkg/markup"
- "github.com/gogits/gogs/pkg/setting"
+ . "github.com/gogs/gogs/pkg/markup"
+ "github.com/gogs/gogs/pkg/setting"
)
func Test_IsReadmeFile(t *testing.T) {
diff --git a/pkg/markup/sanitizer.go b/pkg/markup/sanitizer.go
index 39dcff66..371f5b3f 100644
--- a/pkg/markup/sanitizer.go
+++ b/pkg/markup/sanitizer.go
@@ -10,7 +10,7 @@ import (
"github.com/microcosm-cc/bluemonday"
- "github.com/gogits/gogs/pkg/setting"
+ "github.com/gogs/gogs/pkg/setting"
)
// Sanitizer is a protection wrapper of *bluemonday.Policy which does not allow
diff --git a/pkg/markup/sanitizer_test.go b/pkg/markup/sanitizer_test.go
index ae341acc..194c27af 100644
--- a/pkg/markup/sanitizer_test.go
+++ b/pkg/markup/sanitizer_test.go
@@ -9,7 +9,7 @@ import (
. "github.com/smartystreets/goconvey/convey"
- . "github.com/gogits/gogs/pkg/markup"
+ . "github.com/gogs/gogs/pkg/markup"
)
func Test_Sanitizer(t *testing.T) {