Merge pull request #5 from StevanFreeborn/stevanfreeborn/fix/remove-double-quotes-from-message-format-when-present
fix: remove double quotes from start and end of message format"
This commit is contained in:
@@ -56,7 +56,7 @@ internal static class NotificationHandler
|
|||||||
|
|
||||||
var msg = string.Format(
|
var msg = string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
discordNotificationOptions.CurrentValue.MessageFormat,
|
discordNotificationOptions.CurrentValue.MessageFormat.Trim('"'),
|
||||||
videoId
|
videoId
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,3 @@
|
|||||||
using System.Text;
|
|
||||||
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.AspNetCore.Http.HttpResults;
|
|
||||||
using Microsoft.Extensions.Options;
|
|
||||||
|
|
||||||
using StevesBot.Library.Discord.Rest;
|
|
||||||
using StevesBot.Library.Discord.Rest.Requests;
|
|
||||||
using StevesBot.Webhook.YouTube.Handlers;
|
|
||||||
|
|
||||||
namespace StevesBot.Webhook.Tests.Unit;
|
namespace StevesBot.Webhook.Tests.Unit;
|
||||||
|
|
||||||
public class NotificationHandlerTests
|
public class NotificationHandlerTests
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace StevesBot.Webhook.Tests.Unit;
|
namespace StevesBot.Webhook.Tests.Unit;
|
||||||
|
|
||||||
public sealed class PubSubClientTests : IDisposable
|
public sealed class PubSubClientTests : IDisposable
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using System.Globalization;
|
|
||||||
|
|
||||||
namespace StevesBot.Webhook.Tests.Unit;
|
namespace StevesBot.Webhook.Tests.Unit;
|
||||||
|
|
||||||
public class VerifySubscriptionHandlerTests
|
public class VerifySubscriptionHandlerTests
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
using System.Text.Json;
|
|
||||||
|
|
||||||
using Microsoft.Extensions.Options;
|
|
||||||
|
|
||||||
namespace StevesBot.Webhook.Tests.Unit;
|
namespace StevesBot.Webhook.Tests.Unit;
|
||||||
|
|
||||||
public sealed class YouTubeDataApiClientTests : IDisposable
|
public sealed class YouTubeDataApiClientTests : IDisposable
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using StevesBot.Webhook.YouTube.Data;
|
|
||||||
|
|
||||||
namespace StevesBot.Webhook.Tests.Unit;
|
namespace StevesBot.Webhook.Tests.Unit;
|
||||||
|
|
||||||
public class YouTubeVideoListResponseTests
|
public class YouTubeVideoListResponseTests
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
global using System.Collections.Concurrent;
|
global using System.Collections.Concurrent;
|
||||||
global using System.Diagnostics;
|
global using System.Diagnostics;
|
||||||
|
global using System.Globalization;
|
||||||
global using System.Net;
|
global using System.Net;
|
||||||
global using System.Text;
|
global using System.Text;
|
||||||
|
global using System.Text.Json;
|
||||||
|
|
||||||
global using Microsoft.AspNetCore.Http;
|
global using Microsoft.AspNetCore.Http;
|
||||||
global using Microsoft.AspNetCore.Http.HttpResults;
|
global using Microsoft.AspNetCore.Http.HttpResults;
|
||||||
|
|||||||
Reference in New Issue
Block a user