githaven-fork/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 Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
blame.go Replace list.List with slices (#16311) 2021-08-09 14:08:51 -04:00
branch.go Fix branch pagination error (#16805) 2021-08-24 23:15:07 +01:00
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 Download lfs in git and web workflow from minio/s3 directly (#16731) 2021-08-21 20:22:06 +02:00
editor_test.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
editor.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
http_test.go Fix http path bug (#16117) 2021-06-09 14:53:12 +02:00
http.go Move twofactor to models/login (#17143) 2021-09-25 15:00:12 +02:00
issue_content_history.go Fix issue content history problems, improve UI (#17404) 2021-10-23 22:47:38 +08:00
issue_dependency.go Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
issue_label_test.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
issue_label.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
issue_lock.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_stopwatch.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_timetrack.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue_watch.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
issue.go Hide command line merge instructions when user can't push (#17339) 2021-10-17 17:58:36 +01:00
lfs.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
main_test.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
middlewares.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
migrate.go Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
milestone.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
projects_test.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
projects.go Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 2021-10-21 15:37:43 +08:00
pull_review.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
pull.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
release_test.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
release.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
repo.go DBContext is just a Context (#17100) 2021-09-23 23:45:36 +08:00
search.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
setting_protected_branch.go Add a simple way to rename branch like gh (#15870) 2021-10-08 19:03:04 +02:00
setting.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
settings_test.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
tag.go Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
topic.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
view.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
webhook.go [API] generalize list header (#16551) 2021-08-12 14:43:08 +02:00
wiki_test.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
wiki.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00