Skip to content

Commit

Permalink
support dot within plain (unquoted) keys (#430)
Browse files Browse the repository at this point in the history
* support dot within plain (unquoted) keys

---
ms.author: author
ms.date: yyyy/MM/dd
---

* double slash

Co-authored-by: javaor <69024684+javaor@users.noreply.github.com>
  • Loading branch information
1024c and 1024c authored Jan 24, 2022
1 parent 8a881b7 commit fd07e28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.regex.Pattern;

public class YamlFrontMatterBlockParser extends AbstractBlockParser {
final private static Pattern REGEX_METADATA = Pattern.compile("^[ ]{0,3}([A-Za-z0-9_-]+):\\s*(.*)");
final private static Pattern REGEX_METADATA = Pattern.compile("^[ ]{0,3}([A-Za-z0-9_\\-.]+):\\s*(.*)");
final private static Pattern REGEX_METADATA_LIST = Pattern.compile("^[ ]+-\\s*(.*)");
final private static Pattern REGEX_METADATA_LITERAL = Pattern.compile("^\\s*(.*)");
final private static Pattern REGEX_BEGIN = Pattern.compile("^-{3}(\\s.*)?");
Expand Down

0 comments on commit fd07e28

Please sign in to comment.