Skip to content

Commit

Permalink
Changed label function
Browse files Browse the repository at this point in the history
  • Loading branch information
knathan1987 committed Jan 21, 2025
1 parent 5755816 commit e61bfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/alexa-remote-event.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3><strong>References</strong></h3>
if (this.event == 'command') return 'On any event (raw data)';

const match = this.event.slice(3).match(/(?:[A-Z]?[a-z]+)|[A-Z]|[0-9]+/g);
str = match.map(s => s.slice(0, 1).toUpperCase() + s.slice(1)).join(' ');
var str = match.map(s => s.slice(0, 1).toUpperCase() + s.slice(1)).join(' ');
return `On ${str}`;
},
labelStyle: function () {
Expand Down

0 comments on commit e61bfd1

Please sign in to comment.