PageSourceSearch

https://www.soiel.it/site/sdwf/js/sd_string.js?t=t6abf4cdf35585

js soiel.it collected 2026-10-02 06:19:27 UTC 1,883 bytes, 99 lines download raw bytes

1String.prototype.Trim = function() { 
2	return this.replace(/^\s+|\s+$/g, ''); 
3};
4
5String.prototype.isNotEmpty = function() {
6	var temp = this.toString();
7	if (temp.Trim()==""){
8		return false
9	}else{
10		return true;
11	}
12};
13
14
15String.prototype.isInteger = function() {
16	var temp = this.toString();
17	if (temp!=""){
18		var filter = /^([+-]?([0-9]+))$/;
19		if (!filter.test(temp)) {		
20			return false;
21		}else{
22			return true;
23		}
24	}else{
25		return true;
26	}
27};
28
29String.prototype.isFloat = function() {
30	var temp = this.toString();
31	if (temp!=""){
32		var filter = /^([+-]?((([0-9]+)|([0-9]*\,[0-9]+))?))$/;
33		if (!filter.test(temp)) {		
34			return false;
35		}else{
36			return true;
37		}
38	}else{
39		return true;
40	}
41};
42
43
44String.prototype.isEmail = function() {
45	var temp = this.toString();
46	if (temp!=""){
47		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
48		if (!filter.test(temp)) {		
49			return false;
50		}else{
51			return true;
52		}
53	}else{
54		return true;
55	}
56};
57
58
59String.prototype.isDate = function() {
60	var temp = this.toString();
61	if (temp!=""){
62		var filter = /^[0-9][0-9][/][0-9][0-9][/][0-9][0-9][0-9][0-9]$/;
63		if (!filter.test(temp)) {		
64			return false;
65		}else{
66			return true;
67		}
68	}else{
69		return true;
70	}
71};
72
73String.prototype.isTime = function() {
74	var temp = this.toString();
75	if (temp!=""){
76		var filter = /^[0-9][0-9][:][0-9][0-9][:][0-9][0-9]$/;
77		if (!filter.test(temp)) {		
78			return false;
79		}else{
80			return true;
81		}
82	}else{
83		return true;
84	}
85};
86String.prototype.isPhone = function() {
87	var temp = this.toString();
88	var filter = /^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/;
89	if (temp!=""){
90		if (filter.test(temp)) {
91			return true;
92		}
93		else {
94			return false;
95		}
96	} else {
97		return true;
98	}
99}

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.