]> Lady’s Gitweb - Gitweb/commit
gitweb: Highlight matched part of shortened project description
authorJakub Narebski <redacted>
Mon, 27 Feb 2012 01:55:22 +0000 (02:55 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commitc77ad442fb79805bda442e469e4b03ab7272d4ca201b2ccd025be3f57a20d2e5
tree1ddb9ae4f077364d8ecd0af8ccbc2537ccd3b49f722c35f2f6a066eff79ae27d
parent22a5f402b5fe2fc5fcf212d33915975a73c1d205cb21e956821b2b5c9a985770
gitweb: Highlight matched part of shortened project description

Previous commit make gitweb use esc_html_match_hl() to mark match in
the _whole_ description of a project when searching projects.

This commit makes gitweb highlight match in _shortened_ description,
based on match in whole description, using esc_html_match_hl_chopped()
subroutine.

If match is in removed (chopped) part, even partially, then trailing
"... " is highlighted.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.13853 seconds and 4 git commands to generate.