fix parentheses

Signed-off-by: tonedef <kobylk@gmail.com>
This commit is contained in:
tonedef
2022-08-30 15:51:52 -07:00
committed by Fredrik Adelöw
parent 20a5161f04
commit 1e62ef8675
+1 -2
View File
@@ -30,7 +30,6 @@ export function isDatabaseConflictError(e: unknown) {
(/SQLITE_CONSTRAINT(?:_UNIQUE)?: UNIQUE/.test(message) ||
/UNIQUE constraint failed:/.test(message) ||
/unique constraint/.test(message) ||
/Duplicate entry/.test(message) // MySQL uniqueness error msg
)
/Duplicate entry/.test(message)) // MySQL uniqueness error msg
);
}