mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
elide-head: Make trailing "/" in URL optional
* lisp/elide-head.el (elide-head-headers-to-hide): Make trailing "/" in the gnu.org URL optional for the GPL. * test/lisp/elide-head-tests.el (elide-head--test-headers-to-hide/gpl3-5): New test.
This commit is contained in:
parent
b1fa7974bb
commit
2fa8f1b77a
2 changed files with 18 additions and 7 deletions
|
|
@ -53,8 +53,8 @@
|
|||
`(;; GNU GPL
|
||||
("is free software[:;] you can redistribute it" .
|
||||
,(rx (or (seq "If not, see " (? "<")
|
||||
"http" (? "s") "://www.gnu.org/licenses/"
|
||||
(? ">") (? " "))
|
||||
"http" (? "s") "://www.gnu.org/licenses"
|
||||
(? "/") (? ">") (? " "))
|
||||
(seq "Boston, MA " (? " ")
|
||||
"0211" (or "1-1307" "0-1301")
|
||||
(or " " ", ") "USA")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
;; Copyright (C) 2020-2022 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Simen Heggestøyl <simenheg@gmail.com>
|
||||
;; Keywords:
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
|
|
@ -20,10 +19,6 @@
|
|||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;;
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'elide-head)
|
||||
|
|
@ -169,6 +164,22 @@
|
|||
***************************************************************************/
|
||||
" "This program is distributed in the hope that")
|
||||
|
||||
;; from mentor.el [no "/" in the gnu.org URL]
|
||||
(elide-head--add-test gpl3-5 "\
|
||||
;; Mentor is free software; you can redistribute it and/or modify it
|
||||
;; under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 3, or (at your option)
|
||||
;; any later version.
|
||||
;;
|
||||
;; Mentor is distributed in the hope that it will be useful, but WITHOUT
|
||||
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
;; License for more details.
|
||||
;;
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with Mentor. If not, see <https://www.gnu.org/licenses>.
|
||||
" "Mentor is distributed in the hope that")
|
||||
|
||||
|
||||
;;; GPLv2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue