MCPcopy
hub / github.com/autoNumeric/autoNumeric / _stripAllNonNumberCharacters

Method _stripAllNonNumberCharacters

src/AutoNumeric.js:4970–4972  ·  view source on GitHub ↗

* Strip all the unwanted non-number characters. * However, it does not reorder the localized negative sign. * * @param {string} s * @param {object} settings * @param {boolean} stripZeros If set to `false`, then the leading zero(s) are not stripped, otherwise if set to `true`

(s, settings, stripZeros, isFocused)

Source from the content-addressed store, hash-verified

4968 * @private
4969 */
4970 static _stripAllNonNumberCharacters(s, settings, stripZeros, isFocused) {
4971 return this._stripAllNonNumberCharactersExceptCustomDecimalChar(s, settings, stripZeros, isFocused).replace(settings.decimalCharacter, '.');
4972 }
4973
4974 /**
4975 * Strip all unwanted non-number characters except the custom decimal character.

Callers 3

setUnformattedMethod · 0.80
_preparePastedTextMethod · 0.80

Tested by

no test coverage detected