/*
- * Sone - TextFilter.java - Copyright © 2011 David Roden
+ * Sone - TextFilter.java - Copyright © 2011–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
package net.pterodactylus.sone.text;
-import java.util.logging.Logger;
-
-import net.pterodactylus.util.logging.Logging;
-
/**
* Filter for newly inserted text. This filter strips HTTP links to the local
* node of identifying marks, e.g. a link to “http://localhost:8888/KSK@gpl.txt”
* will be converted to “KSK@gpl.txt”. This will only work for links that point
* to the same address Sone is accessed by, so if you access Sone using
* localhost:8888, links to 127.0.0.1:8888 will not be removed.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class TextFilter {
- /** The logger. */
- private static final Logger logger = Logging.getLogger(TextFilter.class);
-
/**
* Filters the given text, stripping the host header part for links to the
* local node.