Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jul 15, 2024
1 parent 97bcd09 commit 385f43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/assets/js/snowboard/extras/Trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default class Trigger extends PluginBase {
*/
parseCommand(command) {
// Support old-format value command (value[foo,bar])
if (command.startsWith('value')) {
if (command.startsWith('value') && command.includes('[')) {
const match = command.match(/[^[\]]+(?=])/g);
const values = [];

Expand Down Expand Up @@ -437,7 +437,7 @@ export default class Trigger extends PluginBase {
}

/**
* Creates a trigger that fires when a target element is checked/unchecked.
* Creates a trigger that fires when a target element(s) is checked/unchecked.
*
* @param {TriggerEntity} trigger
* @param {boolean} checked If the element should be checked or unchecked.
Expand Down

0 comments on commit 385f43e

Please sign in to comment.