File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/tsconfig-reference/scripts Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ languages.forEach((lang) => {
9494 // @ts -ignore
9595 const or = new Intl . ListFormat ( lang , { type : "disjunction" } ) ;
9696 optType = or . format (
97- option . allowedValues . map ( ( v ) => v . replace ( / ^ [ - . 0 - 9 _ a - z ] + $ / i, "`$& `" ) )
97+ option . allowedValues . map ( ( v ) => v . replace ( / ^ [ - . 0 - 9 _ a - z ] + $ / i, "`" $ & " `") )
9898 ) ;
9999 } else {
100100 optType = option . allowedValues
101- . map ( ( v ) => v . replace ( / ^ [ - . 0 - 9 _ a - z ] + $ / i, "`$& `" ) )
101+ . map ( ( v ) => v . replace ( / ^ [ - . 0 - 9 _ a - z ] + $ / i, "`" $ & " `") )
102102 . join ( ", " ) ;
103103 }
104104 } else {
Original file line number Diff line number Diff line change @@ -249,11 +249,11 @@ languages.forEach((lang) => {
249249 }
250250
251251 if ( option . defaultValue !== undefined ) {
252- mdTableRows . push ( [ "Default" , String ( option . defaultValue ) ] ) ;
252+ mdTableRows . push ( [ "Default" , JSON . stringify ( option . defaultValue ) ] ) ;
253253 }
254254
255255 if ( option . allowedValues ) {
256- mdTableRows . push ( [ "Allowed" , option . allowedValues ] ) ;
256+ mdTableRows . push ( [ "Allowed" , option . allowedValues . map ( JSON . stringify ) ] ) ;
257257 }
258258
259259 if ( option . related ) {
You can’t perform that action at this time.
0 commit comments