Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • B blatitle
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Luke Bratch
  • blatitle
  • Merge requests
  • !1

Make sure we capture all title tags individually with grep and then take the first with head

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Phil Burton requested to merge FBeans/blatitle:master into master Jun 04, 2019
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Pages like https://www.bbc.co.uk/schedules/p00fzl6p have svg's that have

tags.

This means our grep for titles grep -oiE '<title.*>.*</title>' is needs to change.

I propose we use this: <title[^>]*>([^<]+)<\/title>. However this will grab all titles split by a new line, so I then pipe in head -1 to get the first instance

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master