File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ const (
47
47
// WhatsAppScheme is the scheme used for WhatsApp identifiers
48
48
WhatsAppScheme string = "whatsapp"
49
49
50
+ // WeChatScheme is the scheme used for WeChat identifiers
51
+ WeChatScheme string = "wechat"
52
+
50
53
// FacebookRefPrefix is the path prefix used for facebook referral URNs
51
54
FacebookRefPrefix string = "ref:"
52
55
)
@@ -65,6 +68,7 @@ var ValidSchemes = map[string]bool{
65
68
TwitterScheme : true ,
66
69
ViberScheme : true ,
67
70
WhatsAppScheme : true ,
71
+ WeChatScheme : true ,
68
72
}
69
73
70
74
// IsValidScheme checks whether the provided scheme is valid
Original file line number Diff line number Diff line change @@ -242,6 +242,9 @@ func TestValidate(t *testing.T) {
242
242
{"jiochat:12345" , "" },
243
243
{"jiochat:123de" , "invalid jiochat id" },
244
244
245
+ // WeChat Open IDs
246
+ {"wechat:o6_bmjrPTlm6_2sgVt7hMZOPfL2M" , "" },
247
+
245
248
// line IDs
246
249
{"line:Uasd224" , "" },
247
250
{"line:Uqw!123" , "invalid line id" },
You can’t perform that action at this time.
0 commit comments