Skip to content

Commit e206c71

Browse files
author
Juan Jose Medina
authored
Fixed MAC cleaning regular expression
1 parent 6c0854f commit e206c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xhyve/xhyve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ func (d *Driver) SendSignal(sig os.Signal) error {
995995

996996
// trimMacAddress trimming "0" of the ten's digit
997997
func trimMacAddress(rawUUID string) string {
998-
re := regexp.MustCompile(`[0]([A-Fa-f0-9][:])`)
998+
re := regexp.MustCompile(`0([A-Fa-f0-9](:|$))`)
999999
mac := re.ReplaceAllString(rawUUID, "$1")
10001000

10011001
return mac

0 commit comments

Comments
 (0)