Sotaro KARASAWA hace 10 años
padre
commit
0b3540eb4f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>'));
   });