Skip to content

Commit

Permalink
fix regex to check for valid object ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Mar 15, 2020
1 parent eb1a234 commit 885481f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/ioBroker.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function(RED) {
}
const nodeSets = [];
const checkStates = [];
const isValidID = new RegExp('^[-_a-z0-9]+\\.\\d+\\.');
const isValidID = new RegExp('^[_A-Za-z0-9ÄÖÜäöüа-яА-Я][-_A-Za-z0-9ÄÖÜäöüа-яА-Я]*\\.\\d+\\.');
let ready = false;
const log = adapter && adapter.log && adapter.log.warn ? adapter.log.warn : console.log;

Expand Down

0 comments on commit 885481f

Please sign in to comment.