🔧 Tweaks to TPB utils
This commit is contained in:
@@ -77,7 +77,7 @@ $border-color: red;
|
||||
}
|
||||
.card-content {
|
||||
.card-title {
|
||||
margin-bottom: 0.2rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
.cv-icon, i {
|
||||
margin: 4px 4px 4px 0;
|
||||
|
||||
@@ -15,7 +15,7 @@ export const Settings = (props: ISettingsProps): ReactElement => {
|
||||
<a>Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>Customers</a>
|
||||
<a>Global Search</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p className="menu-label">Acquisition</p>
|
||||
@@ -38,13 +38,10 @@ export const Settings = (props: ISettingsProps): ReactElement => {
|
||||
<p className="menu-label">ComicVine</p>
|
||||
<ul className="menu-list">
|
||||
<li>
|
||||
<a>Payments</a>
|
||||
<a>API</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>Transfers</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>Balance</a>
|
||||
<a>Configuration</a>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
@@ -39,7 +39,6 @@ function airdcppReducer(state = initialState, action) {
|
||||
searchInstance: action.instance,
|
||||
};
|
||||
case AIRDCPP_RESULT_DOWNLOAD_INITIATED:
|
||||
console.log(action)
|
||||
return {
|
||||
...state,
|
||||
downloadResult: action.downloadResult,
|
||||
|
||||
@@ -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