From 33accf35259f2bdbfa946dea305a1fa79f380ad9 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Sat, 13 Aug 2022 14:49:02 -0600 Subject: [PATCH] StringMap fix for complication, and readouts conversion for GAO, see https://github.com/phetsims/chipper/issues/1302 --- js/grunt/getStringMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/grunt/getStringMap.js b/js/grunt/getStringMap.js index 36b5f58a8..72cff0d15 100644 --- a/js/grunt/getStringMap.js +++ b/js/grunt/getStringMap.js @@ -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' )`