diff --git a/src/NATS.Client.JetStream/NatsJSContext.cs b/src/NATS.Client.JetStream/NatsJSContext.cs index 256b0660d..d19611c73 100644 --- a/src/NATS.Client.JetStream/NatsJSContext.cs +++ b/src/NATS.Client.JetStream/NatsJSContext.cs @@ -187,7 +187,7 @@ internal static void ThrowIfInvalidStreamName([NotNull] string? name, [CallerArg #endif var nameSpan = name.AsSpan(); - if (nameSpan.IndexOfAny(" .*>") >= 0) + if (nameSpan.IndexOfAny(" .") >= 0) { ThrowInvalidStreamNameException(paramName); } @@ -261,7 +261,7 @@ internal async ValueTask> JSRequestAsync - throw new ArgumentException("Stream name cannot contain ' ', '.', '*' or '>'", paramName); + throw new ArgumentException("Stream name cannot contain ' ', '.'", paramName); [DoesNotReturn] private static void ThrowEmptyException(string? paramName) =>