aboutsummaryrefslogtreecommitdiff
path: root/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/util.go')
-rw-r--r--util/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/util.go b/util/util.go
index a56e871..1feb53a 100644
--- a/util/util.go
+++ b/util/util.go
@@ -29,7 +29,7 @@ func GetActorInstance(path string) (string, string) {
}
}
- re = regexp.MustCompile(`(https?://)(www)?([\w\d-_.:]+)(/|\s+|\r|\r\n)?$`)
+ re = regexp.MustCompile(`(https?://)?(www)?([\w\d-_.:]+)(/|\s+|\r|\r\n)?$`)
mainActor := re.MatchString(path)
if mainActor {
match := re.FindStringSubmatch(path)