Add capture group example
This commit is contained in:
parent
873cae5821
commit
45e22185dc
2 changed files with 17 additions and 0 deletions
15
samples/nitter.yaml
Normal file
15
samples/nitter.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
templates:
|
||||
nitter:
|
||||
type: m.room.message
|
||||
content:
|
||||
msgtype: m.text
|
||||
body: https://nitter.net/$${1}/status/$${2}
|
||||
|
||||
default_flags:
|
||||
- ignorecase
|
||||
|
||||
rules:
|
||||
twitter:
|
||||
matches:
|
||||
- https://twitter.com/(.+?)/status/(\d+)
|
||||
template: nitter
|
Loading…
Add table
Add a link
Reference in a new issue