Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Replace deprecated `substr` with `substring`
Rūdolfs Ošiņš committed 2 years ago
commit 653bacd8d0e3629fb6334aa12ea9a041df75ef26
parent 69d2f9bff90eccaab6686319cfdc98299b9f0688
2 files changed +2 -2
modified src/views/projects/Blob.svelte
@@ -36,7 +36,7 @@
  }

  function updateSelectedLineId() {
-
    const fragmentId = window.location.hash.substr(1);
+
    const fragmentId = window.location.hash.substring(1);
    if (fragmentId && fragmentId.match(/^L\d+$/)) {
      selectedLineId = fragmentId;
    } else {
modified src/views/projects/SourceBrowser/FileDiff.svelte
@@ -55,7 +55,7 @@
  }

  function updateSelection() {
-
    const fragment = window.location.hash.substr(1);
+
    const fragment = window.location.hash.substring(1);
    const match = fragment.match(/(.+):H(\d+)L(\d+)(H(\d+)L(\d+))?/);
    if (match && match[1] === file.path) {
      selection = {