mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
shortcuts use templates
This commit is contained in:
@@ -5,7 +5,7 @@ import froca from "./froca.js";
|
||||
import utils from "./utils.js";
|
||||
|
||||
function getNotePathFromUrl(url) {
|
||||
const notePathMatch = /#(root[A-Za-z0-9/]*)$/.exec(url);
|
||||
const notePathMatch = /#(root[A-Za-z0-9_/]*)$/.exec(url);
|
||||
|
||||
return notePathMatch === null ? null : notePathMatch[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user