mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-10 01:30:27 +00:00
Patch the fastq detector
This commit is contained in:
@@ -78,7 +78,11 @@ func RegisterOBIMimeType() {
|
||||
}
|
||||
|
||||
fastqDetector := func(raw []byte, limit uint32) bool {
|
||||
ok, err := regexp.Match("^@[^ ].*\n[A-Za-z.-]+\n\\+", raw)
|
||||
ok, err := regexp.Match("^@[^ ].*\n[A-Za-z.-]+", raw)
|
||||
if ok && err == nil {
|
||||
ok, err = regexp.Match("^@param,[^ ]", raw)
|
||||
ok = !ok
|
||||
}
|
||||
return ok && err == nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user