imdb can also be 8 digits

This commit is contained in:
j 2019-07-23 16:15:51 +02:00
parent b8a46dbee4
commit 88086fb5bd

View file

@ -633,7 +633,7 @@ Ox.URL = function(options) {
: canBeLocation && length == 4 ? 'location'
// leaves us with [-]D[.D][,[-]D[.D]]
: canBeDuration ? 'duration'
: canBeDate && !/\./.test(str) && !/^\d{7}$/.test(str) ? 'date'
: canBeDate && !/\./.test(str) && !/^\d{7}$/.test(str) && !/^\d{8}$/.test(str) ? 'date'
: canBeLocation && length == 2 ? 'location'
: canBeNumber && /^\d+$/.test(str) ? 'number'
: canBeString && str.length ? 'string'