Sha256: 1fa4b27b052c736266428999d645cb549f86c2e1e41f6c57c55819de5d9471d3

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

/**
 * 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;
	}
);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jquery-datatables-1.10.19.1 app/assets/javascripts/datatables/plugins/type-detection/ip-address.js
jquery-datatables-1.10.19 app/assets/javascripts/datatables/plugins/type-detection/ip-address.js
jquery-datatables-1.10.18 app/assets/javascripts/datatables/plugins/type-detection/ip-address.js