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

Capturing values with Regex expressions #104

Open
thgie opened this issue Sep 28, 2021 · 0 comments
Open

Capturing values with Regex expressions #104

thgie opened this issue Sep 28, 2021 · 0 comments

Comments

@thgie
Copy link

thgie commented Sep 28, 2021

Is it possible to captures values with regex expressions in commands? For example I would love to rewritte the following command.

indexes: [
    'timer for * seconds', 
    'set timer for * seconds', 
    'set a timer for * seconds',
    'set the timer for * seconds',
],

It could be more dynamic with Regex, for example like this:

indexes: [/set [\S]* timer for ([\S]*) seconds/i],

I had a look at the code in artyom.js at line 274 but it's just testing. Maybe I'm missing out something, otherwise I just wanted to confirm that it's not implemented yet. Maybe I could go about that :)

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