diff options
author | azul <azul@riseup.net> | 2020-06-24 23:18:27 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-08-11 16:48:13 +0300 |
commit | 7d5f0db033fb7b4becf495e01e3d4760694cf688 (patch) | |
tree | 74e70a8baf9700043cb88e67b2a3a7eee9a55460 /src | |
parent | 97de93049b6ed67d056bc7426edbdbf485807b59 (diff) |
Update src/helpers/links.js
make sure there are decimals in the fileId
Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/links.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/links.js b/src/helpers/links.js index 8120e1cdd..3a2918863 100644 --- a/src/helpers/links.js +++ b/src/helpers/links.js @@ -55,7 +55,7 @@ const domHref = function(node) { if (ref.match(/^[a-zA-Z]*:/)) { return ref } - const match = ref.match(/^([^?]*)\?fileId=(\d*)/) + const match = ref.match(/^([^?]*)\?fileId=(\d+)/) if (match) { const [, relPath, id] = match const currentDir = OC.Util.History.parseUrlQuery().dir |