Skip to content

Commit

Permalink
don't propagate TODOs into generated files, #740 #916
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 2, 2023
1 parent 97e1b9e commit 35ccd64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/grunt/getA11yViewHTMLFromTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ module.exports = function( repo ) {
html = ChipperStringUtils.replaceAll( html, '{{PHET_SIM_URL}}', `${repo}_${ChipperConstants.FALLBACK_LOCALE}.html` );
html = ChipperStringUtils.replaceAll( html, '{{PHET_REPOSITORY}}', repo );

// Remove to-dos so they don't propagate to all repo copies
html = html.replace( /^.*\/\/[\s]?TODO.*\r?\n/mg, '' );

return fixEOL( html );
};

0 comments on commit 35ccd64

Please sign in to comment.