From 0c71d579c0a1397f74d5c23df326dd2f156dac22 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Wed, 29 Jul 2020 20:43:46 +1000 Subject: [PATCH] Update SnippetKeyReader.cs --- src/MarkdownSnippets/Processing/SnippetKeyReader.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/MarkdownSnippets/Processing/SnippetKeyReader.cs b/src/MarkdownSnippets/Processing/SnippetKeyReader.cs index 3dfa8efb..efe88f9c 100644 --- a/src/MarkdownSnippets/Processing/SnippetKeyReader.cs +++ b/src/MarkdownSnippets/Processing/SnippetKeyReader.cs @@ -21,10 +21,11 @@ public static bool TryExtractKeyFromLine(Line line, [NotNullWhen(true)] out stri } key = key.Trim(); - if (KeyValidator.IsInValidKey(key)) - { - throw new MarkdownProcessingException($@"Invalid syntax for the snippet '{key}': Cannot contain whitespace or start/end with symbols.", line.Path, line.LineNumber); - } + //TODO: better validation + //if (KeyValidator.IsInValidKey(key)) + //{ + // throw new MarkdownProcessingException($@"Invalid syntax for the snippet '{key}': Cannot contain whitespace or start/end with symbols.", line.Path, line.LineNumber); + //} return true; }