Update TextReplace Rules
parent
a4e9692bd6
commit
823a08ee23
1 changed files with 3 additions and 3 deletions
|
@ -41,17 +41,17 @@ Replace: https://cdn.discordapp.com
|
|||
### Beautify GitHub Pull Request/Issue/Discussion links
|
||||
```regex
|
||||
Find: https:\/\/(to)?github\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(issues|pull|discussions)\/(?<number>[0-9]+)\/*
|
||||
Replace: [$<repo> (#$<number>)]($&)
|
||||
Replace: [$<repo>#$<number>]($&)
|
||||
```
|
||||
### Beautify CoastalCommits Pull Request/Issue links
|
||||
```regex
|
||||
Find: https:\/\/(www.)?coastalcommits\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(issues|pulls)\/(?<number>[0-9]+)\/*
|
||||
Replace: [$<repo> (#$<number>)]($&)
|
||||
Replace: [$<repo>#$<number>]($&)
|
||||
```
|
||||
### Beautify CoastalCommits Commit Links
|
||||
```regex
|
||||
Find: https:\/\/(www.)?coastalcommits\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(commit)\/(?<hash>[A-Za-z0-9-]{10})[A-Za-z0-9-]{30}\/*
|
||||
Replace: [$<repo> (#$<hash>)]($&)
|
||||
Replace: [$<repo> ($<hash>)]($&)
|
||||
```
|
||||
# Miscellaneous Rules
|
||||
## Regex Replacement
|
||||
|
|
Loading…
Add table
Reference in a new issue