fix regex. need to account of XXhYYm etc

This commit is contained in:
Matthew Hooker 2016-12-08 15:05:48 -08:00
parent 1e96aa845b
commit a46c071143
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func vncSendString(c *vnc.ClientConn, original string) {
special["<rightShift>"] = 0xFFE2 special["<rightShift>"] = 0xFFE2
shiftedChars := "~!@#$%^&*()_+{}|:\"<>?" shiftedChars := "~!@#$%^&*()_+{}|:\"<>?"
waitRe := regexp.MustCompile(`^<wait([0-9]+[hms])>`) waitRe := regexp.MustCompile(`^<wait([0-9hms]+)>`)
// TODO(mitchellh): Ripe for optimizations of some point, perhaps. // TODO(mitchellh): Ripe for optimizations of some point, perhaps.
for len(original) > 0 { for len(original) > 0 {