Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex detected however not applied #17

Closed
stefanpricopie opened this issue Oct 26, 2022 · 1 comment
Closed

Regex detected however not applied #17

stefanpricopie opened this issue Oct 26, 2022 · 1 comment

Comments

@stefanpricopie
Copy link

Hello!

I am having trouble with embedding YT links. Could you please explain why this regex works

"https:\/\/www\.youtube\.com\/watch\?v="->"https://www.youtube.com/embed/"
"&ab_channel=[A-Za-z0-9.]+"->""

but this one does not

"https:\/\/www\.youtube\.com\/watch\?v=([A-Za-z0-9]+)&ab_channel=[A-Za-z0-9.]+"
->
"https://www.youtube.com/embed/$1"

The latter says that regex has been found, however, no replacement is actually performed. Thank you!

@No3371
Copy link
Owner

No3371 commented Oct 26, 2022

Thanks for the report 😄
The plugin had a bug that it did not recognize CRLF (windows line feed) and it's fixed in the latest version, v1.3.1.

@No3371 No3371 closed this as completed Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants