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/modules
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
..
activitypub Create pub/priv keypair for federation (#17071) 3 years ago
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
appstate Sync gitea app path for git hooks and authorized keys when starting (#17335) 3 years ago
auth Add bundle download for repository (#14538) 3 years ago
avatar refactor: move from io/ioutil to io and os package (#17109) 3 years ago
base Fixed assert statements. (#16089) 3 years ago
cache Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
charset Read expected buffer size (#17409) 3 years ago
context Ensure that restricted users can access repos for which they are members (#17460) 3 years ago
convert In many cases user avatar link should be an absolute URL with http host (#17420) 3 years ago
cron Refactor update checker to use AppState (#17387) 3 years ago
csv Properly determine CSV delimiter (#17459) 3 years ago
doctor Rename db Engines related functions (#17481) 3 years ago
emoji Run processors on whole of text (#16155) 3 years ago
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
generate switch to maintained lib (#16532) 3 years ago
git Read expected buffer size (#17409) 3 years ago
gitgraph Fix some lints (#17337) 3 years ago
graceful Fix some lints (#17337) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Prevent panic in Org mode HighlightCodeBlock (#17140) 3 years ago
httpcache Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
httplib refactor: move from io/ioutil to io and os package (#17109) 3 years ago
indexer Fix some lints (#17337) 3 years ago
json Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
lfs Fix some lints (#17337) 3 years ago
log refactor: move from io/ioutil to io and os package (#17109) 3 years ago
markup Properly determine CSV delimiter (#17459) 3 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Add metrics to get issues by repository (#17225) 3 years ago
migrations Upgrade go-github to v39 (#17437) 3 years ago
nosql Fix setting redis db path (#15698) 3 years ago
notification API pull's head/base have correct permission (#17214) 3 years ago
options refactor: move from io/ioutil to io and os package (#17109) 3 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private refactor: move from io/ioutil to io and os package (#17109) 3 years ago
process Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
public refactor: move from io/ioutil to io and os package (#17109) 3 years ago
queue Make the Mirror Queue a queue (#17326) 3 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repofiles Read expected buffer size (#17409) 3 years ago
repository Sync gitea app path for git hooks and authorized keys when starting (#17335) 3 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
session Move session to models/login (#17338) 3 years ago
setting Sync gitea app path for git hooks and authorized keys when starting (#17335) 3 years ago
ssh Offer rsa-sha2-512 and rsa-sha2-256 algorithms in internal SSH (#17281) 3 years ago
storage refactor: move from io/ioutil to io and os package (#17109) 3 years ago
structs Add API to get/edit wiki (#17278) 3 years ago
svg refactor: move from io/ioutil to io and os package (#17109) 3 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Fix bug of migrated repository not index (#16991) 3 years ago
templates Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
test Upgrade chi to v5 (#17298) 3 years ago
timeutil Allow mocking timeutil (#17354) 3 years ago
translation Use index of the supported tags to choose user lang (#15452) 3 years ago
typesniffer Read expected buffer size (#17409) 3 years ago
updatechecker Refactor update checker to use AppState (#17387) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Read expected buffer size (#17409) 3 years ago
validation Upgrade chi to v5 (#17298) 3 years ago
web Upgrade chi to v5 (#17298) 3 years ago