View Single Post
  #161  
Old 20.08.2017, 12:15
Luke M
Guest
 
Posts: n/a
Default

I'm trying to make a simple Packagizer Hook to replace "_" with " ":

Code:
if (link.getHost() == "myhost.com") {
	link.setName(link.name.replace(/_/g, " "))
}
getHost returns "http links", not the host name, so the compare always fails. The links are being added by the crawler, if that matters. What am I doing wrong?
Reply With Quote