Skip to content

RegEx Replace Factoids #36

Open
Open
@brigand

Description

@brigand

These would be semi-dynamic factoids. A simple example:

<USER> !learn s/lodash (\w+)/_.\1 http://devdocs.io/lodash/index#\1
<USER> !lodash throttle
<bot>  USER: _.throttle http://devdocs.io/lodash/index#throttle
<USER> !lodash map
<bot>  USER: _.map http://devdocs.io/lodash/index#map

If someone gives me the go-ahead, I'll implement it.

Pattern must start with three or more non-dynamic characters followed by a space, e.g. "lodash ". This'll be used to speed up look-up time, by not executing the expression until a match is likely

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions