Skip to content

Directly return matched content instead of explicitely chopping off backticks #2

Open
@dennib

Description

@dennib

https://github.com/dmg01/snippet-bot/blob/7857918d8e390ca9a06294e5dd566626f3037161/bot.js#L112-L119

I think what you need on line 118 is something like

var matches = regex.exec(string)
return (matches[1] || [])

I'm not sure, it's a bit late here, maybe I'll test this tomorrow after some sleep :P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions