You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/markup
Richard Mahn 40c8451b7d
Properly determine CSV delimiter (#17459)
* Fixes #16558 CSV delimiter determiner

* Fixes #16558 - properly determine CSV delmiiter

* Moves quoteString to a new function

* Adds big test with lots of commas for tab delimited csv

* Adds comments

* Shortens the text of the test

* Removes single quotes from regexp as only double quotes need to be searched

* Fixes spelling

* Fixes check of length as it probalby will only be 1e4, not greater

* Makes sample size a const, properly removes truncated line

* Makes sample size a const, properly removes truncated line

* Fixes comment

* Fixes comment

* tests for FormatError() function

* Adds logic to find the limiter before or after a quoted value

* Simplifies regex

* Error tests

* Error tests

* Update modules/csv/csv.go

Co-authored-by: delvh <dev.lh@web.de>

* Update modules/csv/csv.go

Co-authored-by: delvh <dev.lh@web.de>

* Adds comments

* Update modules/csv/csv.go

Co-authored-by: delvh <dev.lh@web.de>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
3 years ago
..
common Fix some lints (#17337) 3 years ago
csv Properly determine CSV delimiter (#17459) 3 years ago
external refactor: move from io/ioutil to io and os package (#17109) 3 years ago
markdown Open markdown image links in new window (#17287) 3 years ago
mdstripper Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
orgmode Prevent panic in Org mode HighlightCodeBlock (#17140) 3 years ago
html.go Fix issue markdown bugs (#17411) 3 years ago
html_internal_test.go Fix issue markdown bugs (#17411) 3 years ago
html_test.go Fix NPE in fuzzer (#16680) 3 years ago
renderer.go cleanup code `issueFullPattern` in modules/markup (#16419) 3 years ago
renderer_test.go Refactor renders (#15175) 3 years ago
sanitizer.go Do not show issue context popup on external issues (#17050) 3 years ago
sanitizer_test.go Fix data URI scramble (#16098) 3 years ago