mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
Remove whitespace from both sides of the macaddr
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user