Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F885823
web.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
web.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.validate.web"
]){
dojo
.
_hasResource
[
"dojox.validate.web"
]
=
true
;
dojo
.
provide
(
"dojox.validate.web"
);
dojo
.
require
(
"dojox.validate._base"
);
dojox
.
validate
.
isIpAddress
=
function
(
_1
,
_2
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
ipAddress
(
_2
)
+
"$"
,
"i"
);
return
re
.
test
(
_1
);
};
dojox
.
validate
.
isUrl
=
function
(
_3
,
_4
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
url
(
_4
)
+
"$"
,
"i"
);
return
re
.
test
(
_3
);
};
dojox
.
validate
.
isEmailAddress
=
function
(
_5
,
_6
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
emailAddress
(
_6
)
+
"$"
,
"i"
);
return
re
.
test
(
_5
);
};
dojox
.
validate
.
isEmailAddressList
=
function
(
_7
,
_8
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
emailAddressList
(
_8
)
+
"$"
,
"i"
);
return
re
.
test
(
_7
);
};
dojox
.
validate
.
getEmailAddressList
=
function
(
_9
,
_a
){
if
(
!
_a
){
_a
=
{};
}
if
(
!
_a
.
listSeparator
){
_a
.
listSeparator
=
"\\s;,"
;
}
if
(
dojox
.
validate
.
isEmailAddressList
(
_9
,
_a
)){
return
_9
.
split
(
new
RegExp
(
"\\s*["
+
_a
.
listSeparator
+
"]\\s*"
));
}
return
[];
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 19:55 (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25246
Default Alt Text
web.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment