Skip to content

Commit

Permalink
Fix regex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
L0um15 committed Oct 6, 2022
1 parent d9f197b commit b30166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Spotisharp.Client/Resolvers/SpotifyUriResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Spotisharp.Client.Resolvers;

public static class SpotifyUriResolver
{
private static readonly Regex _spotifyUrlRegex = new Regex(@"http(s)?\:\/\/open\.spotify\.com\/(track|playlist|album)\/.{22}");
private static readonly Regex _spotifyUrlRegex = new Regex(@"http(s)?\:\/\/open\.spotify\.com\/(track|playlist|album)\/[0-9A-Za-z]{22}");
private static readonly Regex _spotifyUrnRegex = new Regex(@"spotify\:(track|playlist|album)\:[0-9A-Za-z]{22}");

public static bool IsUriValid(string uri)
Expand Down

0 comments on commit b30166b

Please sign in to comment.