From 692ba2cdc5a2b14c30ab8052842b2357c71774f5 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 27 Jul 2017 16:27:26 -0700 Subject: [PATCH] Add a missing comment. --- src/org/nwapw/abacus/lexing/pattern/Pattern.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/nwapw/abacus/lexing/pattern/Pattern.java b/src/org/nwapw/abacus/lexing/pattern/Pattern.java index 5a7f6cb..a5ae8d9 100644 --- a/src/org/nwapw/abacus/lexing/pattern/Pattern.java +++ b/src/org/nwapw/abacus/lexing/pattern/Pattern.java @@ -236,6 +236,12 @@ public class Pattern { 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 pattern = new Pattern<>("", 0); from = from.replace(".", "\\.");