diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 9bb7c5c4..b1250009 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -619,6 +619,7 @@ Ox.URL = function(options) { canBeDuration = types.indexOf('duration') > -1, canBeLocation = types.indexOf('location') > -1, canBeNumber = types.indexOf('number') > -1, + canBeString = types.indexOf('string') > -1, length = str.split(',').length; // !/^\d{7}$/.test(str) avoids matching imdb ids return canBeDate && /\d-/.test(str) ? 'date' @@ -629,6 +630,7 @@ Ox.URL = function(options) { : canBeDate && !/\./.test(str) && !/^\d{7}$/.test(str) ? 'date' : canBeLocation && length == 2 ? 'location' : canBeNumber && /^\d+$/.test(str) ? 'number' + : canBeString && str.length ? 'string' : ''; }