[PHP-WEBMASTER] [web-news] master: Handle a few more prefixes from active lists

Author: Jim Winstead (jimwins)
Date: 2024-09-04T16:26:59-07:00

Commit: Handle a few more prefixes from active lists · php/web-news@e390332 · GitHub
Raw diff: https://github.com/php/web-news/commit/e3903326ca7f2e3efff0af6d5f001abb13170c6e.diff

Handle a few more prefixes from active lists

Changed paths:
  M lib/common.php

Diff:

diff --git a/lib/common.php b/lib/common.php
index c7f10bd..8f6f446 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -182,7 +182,7 @@ function format_subject($s, $charset = 'iso-8859-1')
     $s = recode_header($s, $charset);

     /* Trim most of the prefixes we add for lists */
- $s = preg_replace('/^(Re:\s*)?(\s*\[(DOC|PEAR|PECL|PHP|ANNOUNCE)(-.+?)?]\s*)+/', '\1', $s);
+ $s = preg_replace('/^(Re:\s*)?(\s*\[(DOC|PEAR|PECL|PHP|ANNOUNCE|GIT-PULLS|STANDARDS|php-standards)(-.+?)?]\s*)+/', '\1', $s);

     // make this look better on the preview page..
     if (strlen($s) > 150 && !isset($article)) {