@@ -206,12 +206,13 @@ func TestValidate(t *testing.T) {
206
206
{"tel:+250788383383" , "" },
207
207
{"tel:+250123" , "" },
208
208
{"tel:1337" , "" },
209
+ {"tel:1" , "" }, // one digit shortcodes are a thing
209
210
{"tel:PRIZES" , "" },
210
211
{"tel:cellbroadcastchannel50" , "" },
211
212
212
213
// invalid tel numbers
213
214
{"tel:07883 83383" , "invalid tel number" }, // can't have spaces
214
- {"tel:12 " , "invalid tel number " }, // too short
215
+ {"tel:" , "cannot be empty " }, // need a path
215
216
216
217
// twitter handles
217
218
{"twitter:jimmyjo" , "" },
@@ -301,7 +302,7 @@ func TestTelURNs(t *testing.T) {
301
302
{"0788383383" , "ZZ" , "tel:0788383383" , false },
302
303
{"PRIZES" , "RW" , "tel:prizes" , false },
303
304
{"PRIZES!" , "RW" , "tel:prizes" , false },
304
- {"1" , "RW" , "" , true },
305
+ {"1" , "RW" , "tel:1 " , false },
305
306
{"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" , "RW" , "" , true },
306
307
}
307
308
0 commit comments