mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
eslint-config: add de-morgan
This commit is contained in:
10 files changed
+19
-19
No files matched your search
@@ -23,7 +23,7 @@ function parseProblemId(id: string) {
|
||||
|
||||
export function getDifficulty(tags: string[]) {
|
||||
const d = tags.find((i) => /^\*\d+$/.test(i))?.split('*')[1];
|
||||
if (!(d && +d)) return null;
|
||||
if (!Number.isSafeInteger(+d)) return null;
|
||||
const map = [
|
||||
[500, 1],
|
||||
[800, 2],
|
||||
|
||||
Reference in new issue
Block a user