adds check for | character
This commit is contained in:
@ -20,8 +20,8 @@ func parseSimple(data []byte) []string {
|
||||
for scanner.Scan() {
|
||||
line := scanner.Text()
|
||||
|
||||
// skip lines where the first non-whitespace character is '#' or '//'
|
||||
if regexp.MustCompile(`^(\s+)?(#|\/\/)`).MatchString(line) {
|
||||
// skip lines where the first non-whitespace character is '#' or '//' or '|'
|
||||
if regexp.MustCompile(`^(\s+)?(#|\/\/|\|)`).MatchString(line) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user