Add start and end markers to p1 test

This commit is contained in:
Dave Conway-Jones 2013-12-31 18:24:14 +00:00
parent 24a8c6df32
commit fe04286d10
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if (!fs.existsSync("/dev/ledborg")) {
function LedBorgNode(n) {
RED.nodes.createNode(this,n);
var p1 = /[0-2][0-2][0-2]/
var p1 = /^[0-2][0-2][0-2]$/
var p2 = /^\#[A-Fa-f0-9]{6}$/
var node = this;