imdb can also be 8 digits
This commit is contained in:
parent
b8a46dbee4
commit
88086fb5bd
1 changed files with 1 additions and 1 deletions
|
@ -633,7 +633,7 @@ Ox.URL = function(options) {
|
||||||
: canBeLocation && length == 4 ? 'location'
|
: canBeLocation && length == 4 ? 'location'
|
||||||
// leaves us with [-]D[.D][,[-]D[.D]]
|
// leaves us with [-]D[.D][,[-]D[.D]]
|
||||||
: canBeDuration ? 'duration'
|
: 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'
|
: canBeLocation && length == 2 ? 'location'
|
||||||
: canBeNumber && /^\d+$/.test(str) ? 'number'
|
: canBeNumber && /^\d+$/.test(str) ? 'number'
|
||||||
: canBeString && str.length ? 'string'
|
: canBeString && str.length ? 'string'
|
||||||
|
|
Loading…
Reference in a new issue