gitea/modules/markup
Richard Mahn 40c8451b7d
Properly determine CSV delimiter ()
* Fixes  CSV delimiter determiner

* Fixes  - 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>
..
common Fix some lints ()
csv Properly determine CSV delimiter ()
external refactor: move from io/ioutil to io and os package ()
markdown Open markdown image links in new window ()
mdstripper Fix various documentation, user-facing, and source comment typos ()
orgmode Prevent panic in Org mode HighlightCodeBlock ()
html.go Fix issue markdown bugs ()
html_internal_test.go Fix issue markdown bugs ()
html_test.go Fix NPE in fuzzer ()
renderer.go cleanup code `issueFullPattern` in modules/markup ()
renderer_test.go Refactor renders ()
sanitizer.go Do not show issue context popup on external issues ()
sanitizer_test.go Fix data URI scramble ()