Remove whitespace from both sides of the macaddr

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-01-12 17:12:02 +08:00
parent 50d3f45049
commit 83f06ed13c
+1 -1
View File
@@ -75,7 +75,7 @@
}
$("#connect").click(function() {
mac = $('#macaddr').val().replace(/:/g,'').toUpperCase();
mac = $('#macaddr').val().replace(/:/g,'').toUpperCase().trim();
if (mac == '') {
$('#msg').text('Please input macaddr');
} else {