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>
2021-10-30 23:50:40 +08:00
..
common Fix some lints () 2021-10-17 20:47:12 +01:00
csv Properly determine CSV delimiter () 2021-10-30 23:50:40 +08:00
external refactor: move from io/ioutil to io and os package () 2021-09-22 13:38:34 +08:00
markdown Open markdown image links in new window () 2021-10-11 20:12:06 +08:00
mdstripper Fix various documentation, user-facing, and source comment typos () 2021-07-08 13:38:13 +02:00
orgmode Prevent panic in Org mode HighlightCodeBlock () 2021-09-24 14:29:32 +01:00
html_internal_test.go Fix issue markdown bugs () 2021-10-23 21:38:12 +08:00
html_test.go Fix NPE in fuzzer () 2021-08-13 00:22:05 +02:00
html.go Fix issue markdown bugs () 2021-10-23 21:38:12 +08:00
renderer_test.go Refactor renders () 2021-04-19 18:25:08 -04:00
renderer.go cleanup code issueFullPattern in modules/markup () 2021-07-15 22:33:56 +02:00
sanitizer_test.go Fix data URI scramble () 2021-06-07 18:55:26 +02:00
sanitizer.go Do not show issue context popup on external issues () 2021-09-15 09:45:27 +01:00