A long number is a per-post id only under a counter
"<kere.ws/illuminatenboard.org> - ID - 1855891249 - Along.The.Ridge.2006.Limited.PAL.DVDr-TWCiSO.rar": no counter, the board's ID kept isPosterTag from taking the text for a tag, and a dump of thousands of releases was one of 9,444 files. FTD's ids come with a counter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8d5385fdec
commit
1c8da1dd12
3 files changed
+11
-4
No files matched your search
@@ -250,8 +250,10 @@ export function isPosterTag(remainder: string, stem: string, counted = false): b
|
||||
const words = stem.toLowerCase().replace(/[^a-z0-9]+/g, ' ').trim()
|
||||
const compact = words.replace(/ /g, '')
|
||||
const whole = new Set(words.split(' '))
|
||||
// A per-post id, also inside a word ("FTD772544").
|
||||
if (/\d{5,}/.test(remainder)) return false
|
||||
// A per-post id, also inside a word ("FTD772544"), under a counter. Without one it's the board's or the dump's
|
||||
// ("<kere.ws/illuminatenboard.org> - ID - 1855891249 - Along.The.Ridge.2006.Limited.PAL.DVDr-TWCiSO.rar": thousands of
|
||||
// releases were one of 9,444 files; LOG.md 2026-10-13 (36)).
|
||||
if (counted && /\d{5,}/.test(remainder)) return false
|
||||
let significant = 0
|
||||
let shared = 0
|
||||
for (const word of remainder.toLowerCase().split(/[^a-z0-9]+/)) {
|
||||
|
||||
Reference in new issue
Block a user