UNPKG

alpaca

Version:

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide

19 lines (17 loc) 411 B
/** * Automatically detect IP addresses in dot notation. Goes perfectly with the * IP address sorting function. * * @name IP address detection * @summary Detect data which is in IP address notation * @author Brad Wasson */ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { if (/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(sData)) { return 'ip-address'; } return null; } );