- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for tableCount (0.19 sec)
-
src/cmd/vendor/rsc.io/markdown/table.go
// fixed a buffer overread by rejecting | by itself as a table line. // That seems to violate the spec, but we will play along. return false } return col == tableCount(tableTrimOuter(hdr1)) } func tableCount(row tableTrimmed) int { col := 1 prev := byte(0) for i := 0; i < len(row); i++ { c := row[i] if c == '|' && prev != '\\' { col++ } prev = c } return col }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 5.4K bytes - Viewed (0)