This topic contains 2 replies, has 2 voices, and was last updated by Sean Sean 1 year, 6 months ago.

Problem with inputmask


  • mdieguez
    Participant

    Posts: 1
    Member Reply #12388

    When I try to set an inputmask I always get the same error:

    Uncaught SyntaxError: Invalid regular expression: /[A-Za-zА-яЁёÀ-ÿµ]/: Range out of order in character class

    at new RegExp (<anonymous>)

    at a (vendors.bundle.js:1)

    at c (vendors.bundle.js:1)

    at Object.analyseMask (vendors.bundle.js:1)

    at Object.e.analyseMask (vendors.bundle.js:1)

    at Object.e.analyseMask (vendors.bundle.js:1)

    at o (vendors.bundle.js:1)

    at a (vendors.bundle.js:1)

    at HTMLInputElement.<anonymous> (vendors.bundle.js:1)

    at Function.each (vendors.bundle.js:1)

     

    I have tested with

    $(“#vatnr”).inputmask(“aaaa”);

    $(“#vatnr”).inputmask(“mask”, {

    “mask”: “aaaa”

    });

     


    mdieguez
    Participant

    Posts: 1
    Member Reply #12418

    This error occurs with Metronic 5.0 but I cannot create a topic in this section although I have purchased one license for this version.

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #12428

    Hi,

    Please make sure you paste the code with proper format. Try to type it manually rather than copying and pasting. Also make sure that the code is valid JS code. This must be a common javascript issue and not related to the theme.

    Thanks.

Tagged: 

You must be logged in to reply to this topic.