electron / release-status

Public facing release status information
https://releases.electronjs.org
MIT License
3 stars 8 forks source link

Update release.js #56

Closed gopikant21 closed 2 months ago

gopikant21 commented 2 months ago

In the code, releaseNotes is being split by a regular expression, and the second part (index [1]) is being assigned back to releaseNotes. If the split operation does not result in at least two elements (meaning the regular expression did not match anything), releaseNotes will be undefined, and trying to call replace on it will throw the error.

Check if releaseNotes is undefined after the split operation: