Skip to content

Commit

Permalink
StringMap fix for complication, and readouts conversion for GAO, see #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 13, 2022
1 parent 55f01f5 commit 33accf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grunt/getStringMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ module.exports = function( mainRepo, locales, phetLibs, usedModules ) {
// this must support JS code and minified TypeScript code
const matches = fileContent.match( new RegExp( `${prefix}(\\.[a-zA-Z_$][a-zA-Z0-9_$]*|\\[\\s*['"][^'"]+['"]\\s*\\])+[^\\.\\[]`, 'g' ) );
if ( matches ) {
stringAccesses.push( ...matches.map( match => match.slice( 0, match.length - 1 ).replace( /Property$/, '' ) ).filter( m => m !== `${prefix}.get` ) );
stringAccesses.push( ...matches.map( match => match.slice( 0, match.length - 1 ).replace( /Property$/, '' ).replace( /Property'/, '\'' ) ).filter( m => m !== `${prefix}.get` ) );
}

// Look for backup matches, e.g. `joistStrings.get( 'fullString' )`
Expand Down

0 comments on commit 33accf3

Please sign in to comment.