MCPcopy
hub / github.com/autoNumeric/autoNumeric / _preparePastedText

Method _preparePastedText

src/AutoNumeric.js:8631–8633  ·  view source on GitHub ↗

* Return the pasted text that will be used, by stripping most non-numeric characters * * @param {string} text * @returns {string}

(text)

Source from the content-addressed store, hash-verified

8629 * @returns {string}
8630 */
8631 _preparePastedText(text) {
8632 return this.constructor._stripAllNonNumberCharacters(text, this.settings, true, this.isFocused);
8633 }
8634
8635 /**
8636 * Return TRUE if the given value (a number as a string) is within the range set in the settings `minimumValue` and `maximumValue`, FALSE otherwise.

Callers 1

_onPasteMethod · 0.95

Calls 1

Tested by

no test coverage detected