🔧 Tweaks to TPB utils
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user