#67 Kürzel / Shortcodes müssen nun exakt übereinstimmen

Merged
fynngodau merged 1 commits from tomjschwanke/master into fynngodau/master 4 years ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/godau/fynn/dsbdirect/table/Shortcode.java

+ 1 - 1
app/src/main/java/godau/fynn/dsbdirect/table/Shortcode.java

@@ -61,7 +61,7 @@ public class Shortcode {
      * @return The String where shortcode is replaced with teacher name
      */
     public String replace(String s) {
-        return s.replaceAll(shortcode, teacherName);
+        return s.replaceAll("\\b" + shortcode + "\\b", teacherName);
     }
 
     /**