Update 39-wol.js (#488)

allow lowwercase letters in MAC adress
This commit is contained in:
rappsi 2018-09-13 17:53:50 +02:00 committed by Dave Conway-Jones
parent a893affbf4
commit 8d77028b4a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
module.exports = function(RED) {
"use strict";
var wol = require('wake_on_lan');
var chk = /^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/;
var chk = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/;
function WOLnode(n) {
RED.nodes.createNode(this,n);