From 88086fb5bd223fbdade6a98b22a6d9761f59945b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 23 Jul 2019 16:15:51 +0200 Subject: [PATCH] imdb can also be 8 digits --- source/UI/js/Core/URL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 15c96072..c802d353 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -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'