aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-15 00:42:40 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-15 00:42:40 +0200
commit4455f287b73a2c8d3ebb467a40028a20cafae672 (patch)
tree2886ccd376ce49ec0222def93e9911ff3e6f5a4b /skate
parent14c9274513b6949fb32d7373c43530c6b15c8e85 (diff)
downloadrefcat-4455f287b73a2c8d3ebb467a40028a20cafae672.tar.gz
refcat-4455f287b73a2c8d3ebb467a40028a20cafae672.zip
update docs
Diffstat (limited to 'skate')
-rw-r--r--skate/url.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/skate/url.go b/skate/url.go
index 422d3ed..17c8ff8 100644
--- a/skate/url.go
+++ b/skate/url.go
@@ -30,8 +30,7 @@ func SanitizeURL(s string) string {
return s
}
}
- // seems to only be about 15% of total time spent
- index := suffixarray.New([]byte(s))
+ index := suffixarray.New([]byte(s)) // seems to only be about 15% of total time spent
indices := index.Lookup([]byte("http"), -1)
if len(indices) == 1 {
// ISSN-2177-4129periodicos.ufpel.edu.br/ojs2/index.php/Memoriahttp://dx.doi.org/10.15210/rmr.v8i14.7485