Sha256: 098716ee751f2842e928d08a1f718978a0d80e1150cf2dd960f8e60a2b6521d6
Contents?: true
Size: 537 Bytes
Versions: 50
Compression:
Stored size: 537 Bytes
Contents
/*! Parser: hugeNumbers - updated 3/1/2016 (v2.25.5) *//* * See https://github.com/Mottie/tablesorter/issues/1161 */ /*jshint jquery:true */ ;( function( $ ) { 'use strict'; $.tablesorter.addParser({ id: 'hugeNumbers', is : function() { return false; }, format : function( str ) { // add commas every 12 digits; Number.MAX_SAFE_INTEGER is 16 digits long // regex modified from: http://stackoverflow.com/a/2901298/145346 return str.replace(/\B(?=(\d{12})+(?!\d))/g, ','); }, type : 'text' }); })( jQuery );
Version data entries
50 entries across 50 versions & 1 rubygems