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.
gitea/routers/web
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
..
admin Refactor update checker to use AppState (#17387) 3 years ago
dev Refactor routers directory (#15800) 4 years ago
events Move login related structs and functions to models/login (#17093) 3 years ago
explore Add user status filter to admin user management page (#16770) 3 years ago
feed Fix mispelling of starred as stared (#17465) 3 years ago
org Move login related structs and functions to models/login (#17093) 3 years ago
repo Properly determine CSV delimiter (#17459) 3 years ago
user Add appearance section in settings (#17433) 3 years ago
base.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
goget.go Related refactors to ctx.FormX functions (#16567) 4 years ago
home.go Refactor routers directory (#15800) 4 years ago
metrics.go Refactor routers directory (#15800) 4 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 4 years ago
web.go Add appearance section in settings (#17433) 3 years ago