Sotaro KARASAWA 10 년 전
부모
커밋
0b3540eb4f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>'));
   });