0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-29 21:24:32 +01:00
gitea/routers/web/repo
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>
2021-10-30 23:50:40 +08:00
..
activity.go Frontend refactor: move Vue related code from index.js to components dir, and remove unused codes. (#17301) 2021-10-15 10:35:26 +08:00
attachment.go
blame.go
branch.go
commit.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
compare.go Properly determine CSV delimiter (#17459) 2021-10-30 23:50:40 +08:00
download.go
editor.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
editor_test.go
http.go
http_test.go
issue.go Hide command line merge instructions when user can't push (#17339) 2021-10-17 17:58:36 +01:00
issue_content_history.go Fix issue content history problems, improve UI (#17404) 2021-10-23 22:47:38 +08:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
main_test.go
middlewares.go
migrate.go
milestone.go
projects.go Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 2021-10-21 15:37:43 +08:00
projects_test.go
pull.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
pull_review.go
release.go
release_test.go
repo.go
search.go
setting.go
setting_protected_branch.go
settings_test.go
tag.go
topic.go
view.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
webhook.go
wiki.go
wiki_test.go