File: demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/ip-address.js

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/ip-address.js   Download  
File: demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/ip-address.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/ip-address.js
Date: 3 years ago
Size: 411 bytes
 

Contents

Class file image Download
/** * 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; } );