MCPcopy
hub / github.com/autoNumeric/autoNumeric / _cleanValueForRangeParse

Method _cleanValueForRangeParse

src/AutoNumeric.js:6090–6096  ·  view source on GitHub ↗

* Helper function that prepares the value string for the min/max test * * @param {string} value * @returns {{}} * @private

(value)

Source from the content-addressed store, hash-verified

6088 * @private
6089 */
6090 static _cleanValueForRangeParse(value) {
6091 if (!AutoNumericHelper.isNull(value)) {
6092 value = value.toString().replace(',', '.');
6093 }
6094
6095 return AutoNumericHelper.parseStr(value);
6096 }
6097
6098 /**
6099 * Returns `true` is the value is superior or equal to the `minimumValue` limit, discarding any override options

Callers 2

Calls 2

isNullMethod · 0.80
parseStrMethod · 0.80

Tested by

no test coverage detected