]> git.ipfire.org Git - thirdparty/git.git/commit
gitweb: make use of s///r
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 23 Oct 2024 00:46:00 +0000 (00:46 +0000)
committerTaylor Blau <me@ttaylorr.com>
Wed, 23 Oct 2024 20:16:36 +0000 (16:16 -0400)
commit5f139a194f22b34eb49a891253271693989d6fdc
treeac1e79c19a7733e3c22daf21a956f194c82b886a
parent702d8c1f3b5377a64670b0f22add157b0bfc33dd
gitweb: make use of s///r

In Perl 5.14, released in May 2011, the r modifier was added to the s///
operator to allow it to return the modified string instead of modifying
the string in place. This allows to write nicer, more succinct code in
several cases, so let's do that here.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
gitweb/gitweb.perl