Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addIpToArray() {
- let newIp = '';
- isEmpty(this.mask) ? newIp = this.ip : newIp = this.ip + '/' + this.mask;
- console.log(newIp)
- let test = this.regexp.test(newIp)
- console.log(test)
- }
- /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/([0-9]|[1-2][0-9]|3[0-2]))?$/g
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement