wikitrivia-generator icon indicating copy to clipboard operation
wikitrivia-generator copied to clipboard

Filter out cards with dates in the title

Open CristianCantoro opened this issue 3 years ago • 4 comments
trafficstars

Minor bug that allows cheating, items with dates in the description :sweat_smile:

Example: image

This is the corresponding Wikidata item: https://www.wikidata.org/wiki/Q27952702

CristianCantoro avatar Jan 17 '22 09:01 CristianCantoro

Another example of this is Raedwald of East Anglia, whose title is "7th-century Anglo-Saxon king" (in case you were thinking \d{4} for your regex).

novalis avatar Jan 18 '22 13:01 novalis

+1 for that!

Here is another edge case example (notice the BCE part):

image

FlorianCassayre avatar Jan 25 '22 11:01 FlorianCassayre

I would be more than happy to fix this stuff out, if this is still not fixed

varun-s22 avatar Aug 13 '23 12:08 varun-s22

A PR would be welcome!

tom-james-watson avatar Aug 13 '23 13:08 tom-james-watson