Skip to content

add tel - #1429

Merged
mre merged 9 commits into
lycheeverse:masterfrom
Its-Just-Nans:master
May 19, 2024
Merged

add tel#1429
mre merged 9 commits into
lycheeverse:masterfrom
Its-Just-Nans:master

Conversation

@Its-Just-Nans

Copy link
Copy Markdown
Contributor

add tel detection in href ?

Currently it's

 [IGNORED] tel:xxxx | Unsupported: Error creating request client: builder error for url (tel:xxxx): URL scheme is not allowed

@mre

mre commented May 17, 2024

Copy link
Copy Markdown
Member

As far as I can see, tel: is not a standardized Uniform Resource Identifier (URI) scheme for phone numbers. At least, I can't find it in https://www.w3.org/wiki/UriSchemes. It's more of an informal standard, am I right?

@mre

mre commented May 17, 2024

Copy link
Copy Markdown
Member

With that I wanted to say that I like the idea to exclude it, we just do so silently. E.g. we just skip the link entirely. If you like, you can adjust the PR based on this idea.

@Its-Just-Nans

Its-Just-Nans commented May 17, 2024 •

Copy link
Copy Markdown
Contributor Author

@mre

mre commented May 17, 2024

Copy link
Copy Markdown
Member

Oh wow, I did not know that! I'm just blind. 🙈
In this case, all good! Can you add a unit test as well before we merge this?

@Its-Just-Nans

Its-Just-Nans commented May 17, 2024 •

Copy link
Copy Markdown
Contributor Author

added some tests

btw I think you're right: tel is not standard in w3c but it is by other consortium like iana (https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml) and the tel is working almost on every browser (https://caniuse.com/input-email-tel-url)

@mre mre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to avoid changing the filters, as I can't see a use-case for including phone numbers right now. They can't be checked by lychee and users of the library would be required to set the field.

Apart from that, this is ready to be merged from my side.

Comment thread lychee-lib/src/client.rs Resolved
Comment thread lychee-lib/src/filter/mod.rs Resolved
Comment thread lychee-lib/src/filter/mod.rs Resolved
Its-Just-Nans and others added 4 commits May 19, 2024 14:01
Co-authored-by: Matthias Endler <matthias@endler.dev>
Co-authored-by: Matthias Endler <matthias@endler.dev>
Co-authored-by: Matthias Endler <matthias@endler.dev>
@Its-Just-Nans

Copy link
Copy Markdown
Contributor Author

Thanks

I guess it's mergeable now

@Its-Just-Nans
Its-Just-Nans requested a review from mre May 19, 2024 12:08

@mre mre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request and for being so responsive about the changes!

@mre
mre merged commit c3f7fe7 into lycheeverse:master May 19, 2024
@github-actions github-actions Bot mentioned this pull request Oct 6, 2024
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

Successfully merging this pull request may close these issues.

2 participants