mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
more note etapi tests
This commit is contained in:
@@ -15,7 +15,7 @@ function register(app) {
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use((req, res, next) => {
|
||||
const err = new Error(`Router not found for request ${req.url}`);
|
||||
const err = new Error(`Router not found for request ${req.method} ${req.url}`);
|
||||
err.status = 404;
|
||||
next(err);
|
||||
});
|
||||
|
||||
@@ -412,7 +412,6 @@ function checkImageAttachments(note, content) {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
function findImageLinks(content, foundLinks) {
|
||||
const re = /src="[^"]*api\/images\/([a-zA-Z0-9_]+)\//g;
|
||||
let match;
|
||||
|
||||
Reference in New Issue
Block a user