leeper / csvy

Import and Export CSV Data With a YAML Metadata Header
57 stars 3 forks source link

Update regex to identify yaml delimiters #12

Closed apoorv74 closed 6 years ago

apoorv74 commented 6 years ago

The existing regex will detect lines that do not contain # character E.g. grep("^#?---", "---") will return 1. To make it more fail safe, we can usegrep("^#{1}-{3} ?$", f)`

apoorv74 commented 6 years ago

Was not sure whether uncommented YAML front matter should be accepted or not, makes sense according to the specification. Hence, closing it.