Sun, 17 Sep 2023 13:26:22 +0200
basic implementation of shId()
src/main/java/de/unixwork/uwproj/Util.java | file | annotate | diff | comparison | revisions |
--- a/src/main/java/de/unixwork/uwproj/Util.java Sun Sep 17 13:03:46 2023 +0200 +++ b/src/main/java/de/unixwork/uwproj/Util.java Sun Sep 17 13:26:22 2023 +0200 @@ -41,7 +41,6 @@ * @return the sanitized string */ public static String shId(String s) { - // TODO: implement - return s; + return s.replaceAll("[^A-Za-z0-9_]", "_"); } }