From 69362de85448c77747aa48006d115e8999b98fdc Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 2 Jan 2020 00:44:46 +0200 Subject: [PATCH] Fix eslint warnings --- .../management/frontend/src/pages/dashboard/InstanceDatabase.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maubot/management/frontend/src/pages/dashboard/InstanceDatabase.js b/maubot/management/frontend/src/pages/dashboard/InstanceDatabase.js index d447d6e..8cb34ae 100644 --- a/maubot/management/frontend/src/pages/dashboard/InstanceDatabase.js +++ b/maubot/management/frontend/src/pages/dashboard/InstanceDatabase.js @@ -22,6 +22,7 @@ import { ReactComponent as OrderAsc } from "../../res/sort-up.svg" import api from "../../api" import Spinner from "../../components/Spinner" +// eslint-disable-next-line no-extend-native Map.prototype.map = function(func) { const res = [] for (const [key, value] of this) { @@ -215,6 +216,7 @@ class InstanceDatabase extends Component { col: props.col, }) + // eslint-disable-next-line no-control-regex sqlEscape = str => str.replace(/[\0\x08\x09\x1a\n\r"'\\%]/g, char => { switch (char) { case "\0":