🔧 Tweaks to TPB utils

This commit is contained in:
2021-09-10 00:15:12 -07:00
parent ed0d7cd254
commit 0e085f6f06
4 changed files with 6 additions and 9 deletions

View File

@@ -1,10 +1,11 @@
import { compact, isNil } from "lodash";
import { compact } from "lodash";
export const detectTradePaperbacks = (deck): any => {
const paperback = [
/((trade)?\s?(paperback)|(tpb))/gim, // https://regex101.com/r/FhuowT/1
/(hard\s?cover)\s?(collect((ion)|(ed)|(ing)))/gim, //https://regex101.com/r/eFJVRM/1
/(collected\s?editions)/gim, // https://regex101.com/r/40pAm5/1
/(?:collects|issues|issue)/gim,
];
const matches = paperback
.map((regex) => {