vendor/assets/javascripts/tidy-table.js in tidy-table-rails-3.0.0 vs vendor/assets/javascripts/tidy-table.js in tidy-table-rails-3.0.1

- old
+ new

@@ -52,10 +52,10 @@ } // Config defaults config = Object.assign({ sortByPattern: function(col_num, val) { - if (col_num && val) { + if (typeof col_num !== 'undefined' && typeof val !== 'undefined') { return String(val).replace(/$|%|#/g, ''); } } }, config);