MCPcopy Create free account
hub / github.com/breck7/scroll / _htmlNumeric

Function _htmlNumeric

external/.datatables.js:1106–1118  ·  view source on GitHub ↗
(d, decimalPoint, formatted, allowEmpty)

Source from the content-addressed store, hash-verified

1104
1105 // Is a string a number surrounded by HTML?
1106 var _htmlNumeric = function (d, decimalPoint, formatted, allowEmpty) {
1107 if (allowEmpty && _empty(d)) {
1108 return true
1109 }
1110
1111 // input and select strings mean that this isn't just a number
1112 if (typeof d === "string" && d.match(/<(input|select)/i)) {
1113 return null
1114 }
1115
1116 var html = _isHtml(d)
1117 return !html ? null : _isNumber(_stripHtml(d), decimalPoint, formatted, allowEmpty) ? true : null
1118 }
1119
1120 var _pluck = function (a, prop, prop2) {
1121 var out = []

Callers 1

.datatables.jsFile · 0.85

Calls 4

_emptyFunction · 0.85
_isHtmlFunction · 0.85
_isNumberFunction · 0.85
_stripHtmlFunction · 0.85

Tested by

no test coverage detected