1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

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

View File

@ -2,7 +2,7 @@
module.exports = function(RED) { module.exports = function(RED) {
"use strict"; "use strict";
var wol = require('wake_on_lan'); 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) { function WOLnode(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);