summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-05-22 15:30:10 +0100
committerSean McGivern <sean@gitlab.com>2019-05-22 16:56:12 +0100
commitf9f9147290b5bc315e595e059c851593c1fc466f (patch)
tree40ea181966c7ed2b1451bd89ab280361c79596fd /scripts
parentbc4a18ecb9e85a5ee51541ed25b2cb9c4a2768b5 (diff)
downloadgitlab-ce-f9f9147290b5bc315e595e059c851593c1fc466f.tar.gz
This helper is used for extracting part of the issue / MR / whatever description for use in the description meta tag: 1. To do that, we look at the source of the Markdown description. 2. We then strip out all HTML tags. 3. And then take the first 30 words. Doing that can be really slow - especially as Markdown is supposed to be treated as plain text. There are many better ways to do this, but the immediate performance fix is to swap steps 2 and 3. This does mean that the description may be less than 30 words (or even empty), but it is much faster when the description is very long.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions