Skip to content

Regex with wildcard #119

@leo-valadao

Description

@leo-valadao

How can we create Regex commands with wildcard? Like:

artyom.addCommands({
    smart:true,
    indexes: [/Open Screen */i, new RegExp("Name *", "i")],
    action: function(i){

        if(i === 1) {
            artyom.say("Screen "+ wildcard + " Open);
        } if (i === 2) {
            document.getElementById('nameInput').value = wildcard;
        }

    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions