File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export class BlockInputEnum extends BlockInput {
207
207
this . values = [ ] ;
208
208
for ( let i = 0 ; i < options . length ; i ++ ) {
209
209
if ( typeof options [ i ] [ 1 ] === "string" && BlockInputEnum . INVALID_VALUES . indexOf ( options [ i ] [ 1 ] ) === - 1 ) {
210
- this . values . push ( { value : options [ i ] [ 1 ] , string : options [ i ] [ 0 ] . replaceAll ( String . fromCharCode ( 160 ) , " " ) } ) ;
210
+ this . values . push ( { value : options [ i ] [ 1 ] , string : options [ i ] [ 0 ] . replace ( / \u00a0 / g , " " ) } ) ;
211
211
}
212
212
}
213
213
this . isRound = isRound ;
Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ class QueryInfo {
1072
1072
/** @type {WorkspaceQuerier } */
1073
1073
this . querier = querier ;
1074
1074
/** @type {string } The query */
1075
- this . str = query . replaceAll ( String . fromCharCode ( 160 ) , " " ) ;
1075
+ this . str = query . replace ( / \u00a0 / g , " " ) ;
1076
1076
/** @type {string } A lowercase version of the query. Used for case insensitive comparisons. */
1077
1077
this . lowercase = this . str . toLowerCase ( ) ;
1078
1078
/** @type {number } A unique identifier for this query */
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function modifiedCreateAllInputs(connectionMap) {
33
33
}
34
34
35
35
// remove all traces of %l at the earliest possible time
36
- this . procCode_ = this . procCode_ . replaceAll ( " %l " , "" ) ;
36
+ this . procCode_ = this . procCode_ . replace ( / % l / g , "" ) ;
37
37
}
38
38
39
39
//https://github.com/scratchfoundation/scratch-blocks/blob/f210e042988b91bcdc2abeca7a2d85e178edadb2/blocks_vertical/procedures.js#L565
Original file line number Diff line number Diff line change 1
- {"commit" :" c237cfa " }
1
+ {"commit" :" 2b49ae3 " }
You can’t perform that action at this time.
0 commit comments