Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove trailing chars from changelog summaries

+11 -2
+11 -2
scripts/changesets/changelog.js
··· 5 5 6 6 const REPO = 'FormidableLabs/urql'; 7 7 const SEE_LINE = /^See:\s*(.*)/i; 8 + const TRAILING_CHAR = /[.;:]$/g; 8 9 9 - const getSummaryLines = cs => 10 - cs.summary 10 + const getSummaryLines = cs => { 11 + const lines = cs.summary 11 12 .trim() 12 13 .split(/[\r\n]+/) 13 14 .map(l => l.trim()) 14 15 .filter(Boolean); 16 + const size = lines.length; 17 + if (size > 0) { 18 + lines[size - 1] = lines[size - 1] 19 + .replace(TRAILING_CHAR, ''); 20 + } 21 + 22 + return lines; 23 + }; 15 24 16 25 /** Creates a "(See X)" string from a template */ 17 26 const templateSeeRef = links => {