PageSourceSearch

https://selfservice.foxborough.k12.ma.us/ess/js/ClientCommon.js

js foxborough.k12.ma.us collected 2026-09-26 01:08:23 UTC 1,350 bytes, 34 lines download raw bytes

1var clientCommon = {
2    validators: {
3
4        email: function(s) { return s ? s.length > 1 && s.match(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/) : false; },
5          
6        zipCode: function (s) {
7            if (s) {
8                return (s.length == 5 && !s.match(/[^0-9]/)) || (s.length == 10 && !s.match(/[^0-9-]/));
9            }
10            else {
11                return false;
12            }
13        },
14
15        applicants: {
16
17            username: function (s) { return s ? s.length >= 1 && s.length < 63 && s.match(/[a-z]/i) && !s.match(/[^a-z0-9._\-@]/i) : false; },
18
19            password: function (s) { return  s ? s.length >= 4 && !s.match(/\s/) : false; },
20
21            passwords: function (p, c) { return (p && c) ? p == c && p.length >= 4 && !p.match(/\s/) : false; },
22
23            name: function (s) { return s ? s.length >= 1 && !s.match(/[^a-z0-9'.,\-\s]/i) : false; },
24
25            pin: function (s) { return s ? s.length >= 1 && !s.match(/[^0-9]/) : false; },
26            
27            securityAnswer: function (s) { return s ? s.length >= 1 && !s.match(/[^a-z0-9\s]/i) : false; },
28
29            verifyEmailCode: function (s) { return s ? s.length == 8 && !s.match(/[^a-z0-9]/i) : false; }
30
31        } 
32
33    }
34};

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.