INNER CODE UNIT · JavaScript

removeNonDigit

mdziekon/UniEngine · js/_libCommon.js:47

const removeNonDigit = (value) => {
    value += "";
    value = value.replace(/[^0-9]/g, "");
    return value;
};

const prettyInputBox = (jqThis) => {
    if (!AllowPrettyInputBox) {
        return jqThis;
    }

    return jqThis.each(function () {
        const normalizedValue = removeNonDigit($(this).val());
        const formattedValue = addDots(normalizedValue);
        $(this).val(formattedValue);
    });
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…