mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
fix(series): prevent wrong-volume request matches
Compare release and imported metadata against the requested series position so unattended fulfillment cannot file a later volume under the request. Keep unnumbered candidates eligible and leave exact ISBN matches decisive. Fixes #2037
This commit is contained in:
@@ -78,7 +78,7 @@ export function normalizeTitleText(value: string): string {
|
||||
}
|
||||
|
||||
export function tokenizeTitleText(value: string): string[] {
|
||||
return value.split(' ').filter((token) => token.length > 1);
|
||||
return value.split(' ').filter((token) => token.length > 1 || /^\p{N}$/u.test(token));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user