lintool / warcbase

Warcbase is an open-source platform for managing analyzing web archives
http://warcbase.org/
161 stars 47 forks source link

Write removePrefixWWW method #192

Closed lintool closed 8 years ago

lintool commented 8 years ago

We seem to do this a lot:

ExtractTopLevelDomain(f._1).replaceAll("^\\s*www\\.", "")

We should write a removePrefixWWW method so that we can just do this:

ExtractTopLevelDomain(f._1).removePrefixWWW()
aliceranzhou commented 8 years ago

Please review? https://github.com/lintool/warcbase/pull/194

On Thu, Dec 17, 2015 at 6:25 PM Jimmy Lin notifications@github.com wrote:

We seem to do this a lot:

ExtractTopLevelDomain(f._1).replaceAll("^\s*www.", "")

We should write a removePrefixWWW method so that we can just do this:

ExtractTopLevelDomain(f._1).removePrefixWWW()

— Reply to this email directly or view it on GitHub https://github.com/lintool/warcbase/issues/192.

jrwiebe commented 8 years ago

Took it upon myself to merge this. Closed.