1function SearchKeywordEvaluateIsValid(val) 2{ 3 var keyword = document.getElementById(val.controltovalidate).value; 4 if (keyword == "" || keyword.length == 0) return true; 5 if (val.allowWildCardsInStart.toLowerCase() == "false") { 6 if (keyword.indexOf("*") === 0 || keyword.indexOf("?") === 0) 7 return false; 8 } 9 var cleanKeyword = keyword.replace(/[*\s]/g,""); 10 var minimumLength = (+val.minimumLength); 11 return (cleanKeyword.length >= minimumLength); 12} 13 14function SearchKeywordEvaluateIsValidRequired(val) 15{ 16 var keyword = document.getElementById(val.controltovalidate).value; 17 if (keyword == "" || keyword.length == 0) return false; 18 var cleanKeyword = keyword.replace(/[*\s]/g,""); 19 var minimumLength = (+val.minimumLength); 20 return (cleanKeyword.length >= minimumLength); 21}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.