mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Patch the fastq detector
This commit is contained in:
1 parent
7a6d552450
commit
6d204f6281
3 files changed
+8
-2
No files matched your search
@@ -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