Project

uts58

0.0
The project is in a healthy, maintained state
Ruby code to detect links in text, as specified by UTS58
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 12.0, < 14
~> 1.5
~> 3.0

Runtime

>= 6.0, < 8
~> 0.2
 Project Readme

uts58

This repo contains two implementations of UTS58, the Unicode spec for finding links in running text. Given a chunk of text, they return the URLs and email addresses in it along with their character offsets.

CI for the Ruby code: CI and for the Javascript code: CI

Roadmap

My immediate need is UTS58 conformant link detection suitable for public web pages. If you need something more, I rather think that an item can be added to this roadmap, so long as the description in the rdoc remains short and simple. Send mail to arnt@gulbrandsen.priv.no.

License

BSD-2-Clause. See LICENSE.

FWIW, I wrote this as part of my work at ICANN and will maintain it as part of the same work. (I resolve problems relating to Unicode in domains, email addresses and similar, so more people, more communities, can use the internet in the way they prefer.)