Skip to content

Capturing values with Regex expressions #104

@thgie

Description

@thgie

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 :)

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