We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 631257f commit 8b8ee7eCopy full SHA for 8b8ee7e
src/JsonLD/Core/RDFDatasetUtils.cs
@@ -567,7 +567,7 @@ private class Regex
567
568
public static readonly Pattern Eoln = Pattern.Compile("(?:\r\n)|(?:\n)|(?:\r)");
569
570
- public static readonly Pattern Empty = Pattern.Compile("^" + Wso + "$");
+ public static readonly Pattern EmptyOrComment = Pattern.Compile("^" + Wso + "(#.*)?$");
571
572
public static readonly Pattern Subject = Pattern.Compile("(?:" + Iri + "|" + Bnode
573
+ ")" + Ws);
@@ -606,7 +606,7 @@ public static RDFDataset ParseNQuads(string input)
606
{
607
lineNumber++;
608
// skip empty lines
609
- if (RDFDatasetUtils.Regex.Empty.Matcher(line).Matches())
+ if (RDFDatasetUtils.Regex.EmptyOrComment.Matcher(line).Matches())
610
611
continue;
612
}
0 commit comments