From d10a55a833dd9cfee9bfc3e8ccba12c16d10826c Mon Sep 17 00:00:00 2001 From: Christina Toegl <toegl@tugraz.at> Date: Mon, 3 May 2021 14:20:41 +0200 Subject: [PATCH] Fix linter errors --- src/dbp-pdf-annotation-view.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dbp-pdf-annotation-view.js b/src/dbp-pdf-annotation-view.js index 5d6e19e..3805d8e 100644 --- a/src/dbp-pdf-annotation-view.js +++ b/src/dbp-pdf-annotation-view.js @@ -112,7 +112,7 @@ export class PdfAnnotationView extends ScopedElementsMixin(DBPLitElement) { return false; } - const pattern = new RegExp('[A-Za-z0-9ÄäÖöÜüß\*\\/?! &@()=+_-]*'); + const pattern = new RegExp('[A-Za-z0-9ÄäÖöÜüß*\\/?! &@()=+_-]*'); let matchResult = annotation['value'].match(pattern); if (matchResult[0] === undefined || annotation['value'].length !== matchResult[0].length) { @@ -336,11 +336,11 @@ export class PdfAnnotationView extends ScopedElementsMixin(DBPLitElement) { } /** - * Returns the list of files of annotations of a queued file - * - * @returns {*[]} Array of html templates - */ - getAnnotationsHtml() { + * Returns the list of files of annotations of a queued file + * + * @returns {*[]} Array of html templates + */ + getAnnotationsHtml() { const annotations = this.annotationRows || []; const ids = Object.keys(annotations); let results = []; -- GitLab