curiouslychase / _goorgeous

[DEPRECATED] A go org syntax parser to html
MIT License
160 stars 28 forks source link

Handle tables with a single row. #43

Closed CarlColglazier closed 7 years ago

CarlColglazier commented 7 years ago

This fixes #42

The issue is that hasTableHeaders := reTableHeaders.Match(rows[1]) is called when there is no guarantee that there is more than one row. Thus the array is indexed out of bounds and the program panics.

curiouslychase commented 7 years ago

👍 thanks for contributing!