Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex with wildcard #119

Open
leo-valadao opened this issue Jan 26, 2024 · 0 comments
Open

Regex with wildcard #119

leo-valadao opened this issue Jan 26, 2024 · 0 comments

Comments

@leo-valadao
Copy link

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;
        }

    }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant