Skip to content

Commit 109912f

Browse files
committed
Unikey bump for 95 mode perfection
1 parent 6233320 commit 109912f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module github.com/dgurney/unikey-mod7
22

33
go 1.16
44

5-
require github.com/dgurney/unikey v0.3.7
5+
require github.com/dgurney/unikey v0.3.8
66

77
// replace github.com/dgurney/unikey => ../unikey

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/dgurney/unikey v0.3.7 h1:lBXR/aUafE8yssvqteqbz7/nB6VgxGO0G7JY016wfeg=
2-
github.com/dgurney/unikey v0.3.7/go.mod h1:vHqV5+bSBPDtT7q2cxY9DBC/gizehUa/pgbqbWpyL0k=
1+
github.com/dgurney/unikey v0.3.8 h1:D7ThqRNux5WBNyp+GsBAJ6H1WJqH9NwnNNr+szk38LA=
2+
github.com/dgurney/unikey v0.3.8/go.mod h1:vHqV5+bSBPDtT7q2cxY9DBC/gizehUa/pgbqbWpyL0k=

main.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/dgurney/unikey/validator"
2525
)
2626

27-
const version = "0.3.8"
27+
const version = "0.3.9"
2828

2929
func init() {
3030
rand.Seed(time.Now().UnixNano())
@@ -79,6 +79,12 @@ func main() {
7979
Second: k[4:11],
8080
Is95: *Is95,
8181
}
82+
case len(k) == 11 && *Is95:
83+
ki = validator.Mod7CD{
84+
First: k[0:3],
85+
Second: k[4:11],
86+
Is95: *Is95,
87+
}
8288
case len(k) == 23 && k[5:6] == "-" && k[9:10] == "-" && k[17:18] == "-" && len(k[18:]) == 5:
8389
ki = validator.Mod7OEM{
8490
First: k[0:5],

0 commit comments

Comments
 (0)