Update TextReplace Rules

Seaswimmer 2024-05-07 01:16:50 +00:00
parent a4e9692bd6
commit 823a08ee23
Signed by untrusted user who does not match committer: CoastalCommits
GPG key ID: 7E73189F651A553F

@ -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