Skip to content

Commit

Permalink
Fix digits issue on backstage images (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
samnixon87 authored Oct 22, 2024
1 parent 3024e82 commit 57a36d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/backstage-weekly.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const ImageIssue = ({ post }) => (
);

const extractNewsletterDetailsFromPost = ({ node: { frontmatter, ...rest } }) => {
const mainTitle = frontmatter.title.replace(/Backstage Weekly \d\d? - /, '');
const matchedIssueNumber = frontmatter.title.match(/Backstage Weekly (\d\d?)/);
const mainTitle = frontmatter.title.replace(/Backstage Weekly \d\d\d? - /, '');
const matchedIssueNumber = frontmatter.title.match(/Backstage Weekly (\d\d\d?)/);
const issueNumber = matchedIssueNumber && matchedIssueNumber[1];

return {
Expand Down

0 comments on commit 57a36d5

Please sign in to comment.