GNU bug report logs -
#74132
31.0.50; thing-at-pt, ffap and Github markdown
Previous Next
Full log
View this message in rfc822 format
* Stefan Kangas <stefankangas <at> gmail.com> <CADwFkm=8ewN4B0b2bWnYtNJHNUxXLK-ePMmz8SxJQdztPaAZFg <at> mail.gmail.com>
Wrote on Thu, 13 Feb 2025 02:17:05 -0800
>> Also, how about having some tests for this?
I'm not sure about ert and am dealing with it for the first time. I
added the following:
```
--- a/test/lisp/thingatpt-tests.el
+++ b/test/lisp/thingatpt-tests.el
@@ -67,6 +67,11 @@ thing-at-point-test-data
("This (http://example.com/a(b))" 30 url "http://example.com/a(b)")
("This (http://example.com/a(b))" 5 url nil)
("http://example.com/ab)c" 4 url "http://example.com/ab)c")
+ ;; Github markdown
+ ("[](https://github.com/raysan5/raylib/releases)"
+ 85 "https://img.shields.io/github/downloads/raysan5/raylib/total")
+ ("[](https://github.com/raysan5/raylib/releases)"
+ 113 "https://github.com/raysan5/raylib/releases")
;; URL markup, lacking schema
("<url:foo <at> example.com>" 1 url "mailto:foo <at> example.com")
("<url:ftp.example.net/abc/>" 1 url "ftp://ftp.example.net/abc/")
```
But I don't think we need fill the code base with github url. I will
rework it with foobar and example.com in the strings. If you have
suggestions or any other things this patch should test for please let
me know.
This bug report was last modified 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.