Patch a bug in seting of the tag delimiter with an upper case

Former-commit-id: a3962400b7ab91b25102c4c7c35cd824bf7ceaf0
This commit is contained in:
Eric Coissac
2024-06-06 23:25:16 +02:00
parent 1b43fa4247
commit e47b50de7f
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ func normalizeTagDelimiter(delim byte) byte {
delim = 0
} else {
if delim >= 'A' && delim <= 'Z' {
delim = delim + 'A' - 'a'
delim = delim - 'A' + 'a'
}
if delim != 'a' && delim != 'c' && delim != 'g' && delim != 't' {
log.Fatalf("invalid reverse tag delimiter: %c, only 'a', 'c', 'g', 't' and '0' are allowed", delim)

View File

@ -7,7 +7,7 @@ import (
// TODO: The version number is extracted from git. This induces that the version
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "d600713"
var _Commit = "170593b"
var _Version = "Release 4.2.0"
// Version returns the version of the obitools package.