Sotaro KARASAWA 10 lat temu
rodzic
commit
0b3540eb4f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      resource/js/crowi.js

+ 1 - 1
resource/js/crowi.js

@@ -301,7 +301,7 @@ $(function() {
     var path = $link.data('path');
     var shortPath = $link.data('short-path');
 
-    $link.html(path.replace(shortPath, '<strong>' + shortPath + '</strong>'));
+    $link.html(path.replace(new RegExp(shortPath + '$'), '<strong>' + shortPath + '</strong>'));
   });