Skip to content

Template strings have some parsing bugs #699

@I-Want-ToBelieve

Description

@I-Want-ToBelieve
"zx": "^7.2.3"
// Define the signals
const signals = [
  { event: 'application_launched', label: 'yakite-application-launched', action: 'event application-launched --env YABAI_PROCESS_ID=$YABAI_PROCESS_ID' },
  { event: 'application_terminated', label: 'yakite-application-terminated', action: 'event application-terminated --env YABAI_PROCESS_ID=$YABAI_PROCESS_ID' }
]

  for (const { event, label, action } of signals) {
    console.log(`action=${action}`)  //  action=event application-launched --env YABAI_PROCESS_ID=$YABAI_PROCESS_ID
    $`action=${action}` // action=$'event application-launched --env YABAI_PROCESS_ID=$YABAI_PROCESS_ID'
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions