mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): make pk;import handle <> wrapped URLs
This commit is contained in:
parent
10287d0146
commit
683b616a1b
2 changed files with 6 additions and 3 deletions
|
|
@ -13,6 +13,9 @@ public static class MiscUtils
|
|||
|
||||
public static bool TryMatchUri(string input, out Uri uri)
|
||||
{
|
||||
if (input.StartsWith('<') && input.EndsWith('>'))
|
||||
input = input[1..^1];
|
||||
|
||||
try
|
||||
{
|
||||
uri = new Uri(input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue