Skip to content

Template strings have some parsing bugs #699

Closed

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'
  }

Activity

  1. I-Want-ToBelieve commented on Nov 11, 2023

    @I-Want-ToBelieve
    Author

    It seems that the problem is caused by spaces

  2. locked and limited conversation to collaborators on Nov 11, 2023
  3. converted this issue into a discussion #700 on Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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