From 9b97bd87591ea848f7aa9f3f36522b0dac8925f6 Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Sun, 9 Jun 2019 16:59:33 +0700 Subject: [PATCH] Minor doc fix --- pkg/warc/internal/archiver/processor.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/warc/internal/archiver/processor.go b/pkg/warc/internal/archiver/processor.go index 96fa0324..e37cca59 100644 --- a/pkg/warc/internal/archiver/processor.go +++ b/pkg/warc/internal/archiver/processor.go @@ -431,11 +431,9 @@ func processJS(input io.Reader, baseURL *nurl.URL) (string, []ResourceURL) { // Process the string. // Unlike CSS, JS doesn't have it's own URL token. So, we can only guess whether - // a string is URL or not. There are three criteria to decide if it's URL : - // - It started with http(s):// for absolute URL - // - It started with slash (/) for relative URL - // - It surrounded by `url()` just like CSS - // If it doesn't fulfill any of criteria above, just write it as it is. + // a string is URL or not. For simplicity, we only catch those that wrapped in `url()` + // because it's usually CSS resource which downloaded via JS. However, + // if it doesn't fulfill the criteria above, just write it as it is. var res ResourceURL var newURL string