Skip to content

Commit

Permalink
Fix name2id method to use correct variable
Browse files Browse the repository at this point in the history
reference
  • Loading branch information
DEV2DEV-DE committed Nov 29, 2023
1 parent 58c457f commit b3cb18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class Jablotron extends utils.Adapter {
* @returns {string} - The processed name with forbidden characters replaced by underscores.
*/
name2id (name) {
return name.replace(adapter.FORBIDDEN_CHARS, '_');
return name.replace(this.FORBIDDEN_CHARS, '_');
}

/**
Expand Down

0 comments on commit b3cb18e

Please sign in to comment.