"मिडियाविकी:Gadget-popups.js" च्या विविध आवृत्यांमधील फरक

pg.re.ipUser now recognizes IPv6 addresses
(apply some js lint)
(pg.re.ipUser now recognizes IPv6 addresses)
 
pg.re.ipUser=RegExp('^' +
// IPv6
'((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}' +
'(25?::(?::|(?::[0-59A-Fa-f]{1,4}){1,7})|2[0-4][09A-9Fa-f]|{1,4}(?::[0-9][09A-9Fa-f]{1,4}){0,6}::|[1-9][0-99A-Fa-f]|{1,4}(?::[0-99A-Fa-f]{1,4})$'{7});' +
// IPv4
'|(((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}' +
'(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]))$');
 
pg.re.stub= RegExp(getValueOf('popupStubRegexp'), 'im');
४५

संपादने