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/services
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
..
agit Return correct error response for agit force-push (#16989) 3 years ago
archiver Fix bundle creation (#17079) 3 years ago
attachment Read expected buffer size (#17409) 3 years ago
auth Add groups scope/claim to OIDC/OAuth2 Provider (#17367) 3 years ago
comments Save and view issue/comment content history (#16909) 3 years ago
externalaccount Move login related structs and functions to models/login (#17093) 3 years ago
forms Add appearance section in settings (#17433) 3 years ago
gitdiff Properly determine CSV delimiter (#17459) 3 years ago
issue DBContext is just a Context (#17100) 3 years ago
lfs Test if LFS object is accessible (#16865) 3 years ago
mailer Always set a unique Message-ID header. (#17206) 3 years ago
mirror Handle broken references in mirror sync (#17013) 3 years ago
pull Fix some lints (#17337) 3 years ago
release DBContext is just a Context (#17100) 3 years ago
repository Fix some lints (#17337) 3 years ago
webhook Add specific event type to header (#17222) 3 years ago
wiki refactor: move from io/ioutil to io and os package (#17109) 3 years ago