Skip to content

Problem with symbol / in channel name #226

@from777

Description

@from777

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

if the youtube channel name has a / symbol in it, for example https://youtu.be/1fnfdtyAeLM, I can't check it in my js function.

I have an entry in my template
channel::<% await tp.user.my_script(“{{channelName|replace(‘/’)}}”, “%channelId%”) %>>

For normal channels I get just the channel name,
channel:: some_channel_name

but if there's a /
then I get the literal code that is in the template and my function doesn't even execute
channel::<% await tp.user.my_script(" Артур Манцевич ", "UCMpcfK462vPbr7DaEVinMyQ") %>

Current behaviour

I get the literal code that is in the template and my function doesn't even execute
channel::<% await tp.user.my_script(" Артур Манцевич ", "UCMpcfK462vPbr7DaEVinMyQ") %>

Steps to reproduce

try to import this channel name https://youtu.be/1fnfdtyAeLM

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.8.7

Plugin Version

0.11.4

Checks

  • I have tried it with all other plugins disabled and the error still occurs

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions