Fixed regex to quote strings with leading zeros (#667)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace k8s
|
|||||||
{
|
{
|
||||||
// Patterns from https://yaml.org/spec/1.2/spec.html#id2804356
|
// Patterns from https://yaml.org/spec/1.2/spec.html#id2804356
|
||||||
private static readonly Regex QuotedRegex =
|
private static readonly Regex QuotedRegex =
|
||||||
new Regex(@"^(\~|null|true|false|-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?)?$");
|
new Regex(@"^(\~|null|true|false|-?(0|[0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?)?$");
|
||||||
|
|
||||||
public StringQuotingEmitter(IEventEmitter next)
|
public StringQuotingEmitter(IEventEmitter next)
|
||||||
: base(next)
|
: base(next)
|
||||||
|
|||||||
Reference in New Issue
Block a user