Fix eslint warnings

This commit is contained in:
Tulir Asokan 2020-01-02 00:44:46 +02:00
parent 39a11e18d9
commit 69362de854

View File

@ -22,6 +22,7 @@ import { ReactComponent as OrderAsc } from "../../res/sort-up.svg"
import api from "../../api" import api from "../../api"
import Spinner from "../../components/Spinner" import Spinner from "../../components/Spinner"
// eslint-disable-next-line no-extend-native
Map.prototype.map = function(func) { Map.prototype.map = function(func) {
const res = [] const res = []
for (const [key, value] of this) { for (const [key, value] of this) {
@ -215,6 +216,7 @@ class InstanceDatabase extends Component {
col: props.col, col: props.col,
}) })
// eslint-disable-next-line no-control-regex
sqlEscape = str => str.replace(/[\0\x08\x09\x1a\n\r"'\\%]/g, char => { sqlEscape = str => str.replace(/[\0\x08\x09\x1a\n\r"'\\%]/g, char => {
switch (char) { switch (char) {
case "\0": case "\0":