more note etapi tests

This commit is contained in:
zadam
2023-10-30 23:51:53 +01:00
parent 8690228d98
commit 695c9d5cf3
5 changed files with 128 additions and 11 deletions

View File

@@ -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);
});

View File

@@ -412,7 +412,6 @@ function checkImageAttachments(note, content) {
};
}
function findImageLinks(content, foundLinks) {
const re = /src="[^"]*api\/images\/([a-zA-Z0-9_]+)\//g;
let match;