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
|
### Beautify GitHub Pull Request/Issue/Discussion links
|
||||||
```regex
|
```regex
|
||||||
Find: https:\/\/(to)?github\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(issues|pull|discussions)\/(?<number>[0-9]+)\/*
|
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
|
### Beautify CoastalCommits Pull Request/Issue links
|
||||||
```regex
|
```regex
|
||||||
Find: https:\/\/(www.)?coastalcommits\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(issues|pulls)\/(?<number>[0-9]+)\/*
|
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
|
### Beautify CoastalCommits Commit Links
|
||||||
```regex
|
```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}\/*
|
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
|
# Miscellaneous Rules
|
||||||
## Regex Replacement
|
## Regex Replacement
|
||||||
|
|
Loading…
Add table
Reference in a new issue