1// Hier kommen alle Hilfsfunktionen 2window.Helper = { 3 Validation:{ 4 IsEmail: function(email){ 5 var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 6 return regex.test(email); 7 }, 8 IsNumber: function(number){ 9 var regex = /([0-9])/; 10 return regex.test(number); 11 }, 12 Include2Numbers: function(str) 13 { 14 var regex = /[0-9]{2,}/; 15 return regex.test(str); 16 }, 17 IsCanadianZip: function (str) 18 { 19 var regex = /\w[0-9]\w( )?[0-9]\w[0-9]/; 20 return regex.test(str); 21 }, 22 IsTelephoneNumber: function(str) 23 { 24 var regex = /[0-9- \/+)(]{6,}/; 25 return regex.test(str); 26 } 27 }, 28 Ajax:{ 29 DefaultObj:{ 30 type: "POST", 31 url: document.location.href 32 } 33 }, 34 Encoding:{ 35 JSON:{ 36 Encode: function(str){ 37 return JSON.stringify(str)}, 38 Decode: function(encodedStr){ 39 return JSON.parse(encodedStr); 40 } 41 } 42 } 43}
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.