+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ type PKCS11URI struct {
68
68
// An error is returned if the input string does not appear to follow the rules
69
69
// or if there are unrecognized path or query attributes.
70
70
func ParsePKCS11URI(uri string) (*PKCS11URI, error) {
71
-
if IsPKCS11URI(uri) {
71
+
if !IsPKCS11URI(uri) {
72
72
return nil, fmt.Errorf("error parsing pkcs11 uri %q: invalid format", uri)
73
73
}
74
74
Original file line number Diff line number Diff line change
@@ -18,5 +18,5 @@ func init() {
18
18
19
19
// IsPKCS11URI checks if the uri is in the pkcs11 format
20
20
func IsPKCS11URI(uri string) bool {
21
-
return !re.MatchString(uri)
21
+
return re.MatchString(uri)
22
22
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4