Add a missing comment.

This commit is contained in:
Danila Fedorin 2017-07-27 16:27:26 -07:00
parent 167e13cfe1
commit 0d7a416446
1 changed files with 6 additions and 0 deletions

View File

@ -236,6 +236,12 @@ public class Pattern<T> {
return head;
}
/**
* Removes all characters that are considered "special" from
* the given string.
* @param from the string to sanitize.
* @return the resulting string.
*/
public static String sanitize(String from){
Pattern<Integer> pattern = new Pattern<>("", 0);
from = from.replace(".", "\\.");