Update addons - replace replaceAll with replace when easy

This commit is contained in:
Thomas Weber committed 2025-03-25 21:40:10 -05:00
1 parent de8f5aee25
commit e8bf239040
4 files changed
+4 -4

No files matched your search

@@ -207,7 +207,7 @@ export class BlockInputEnum extends BlockInput {
this.values = [];
for (let i = 0; i < options.length; i++) {
if (typeof options[i][1] === "string" && BlockInputEnum.INVALID_VALUES.indexOf(options[i][1]) === -1) {
this.values.push({ value: options[i][1], string: options[i][0].replaceAll(String.fromCharCode(160), " ") });
this.values.push({ value: options[i][1], string: options[i][0].replace(/\u00a0/g, " ") });
}
}
this.isRound = isRound;
@@ -1072,7 +1072,7 @@ class QueryInfo {
/** @type {WorkspaceQuerier} */
this.querier = querier;
/** @type {string} The query */
this.str = query.replaceAll(String.fromCharCode(160), " ");
this.str = query.replace(/\u00a0/g, " ");
/** @type {string} A lowercase version of the query. Used for case insensitive comparisons. */
this.lowercase = this.str.toLowerCase();
/** @type {number} A unique identifier for this query */
@@ -33,7 +33,7 @@ export function modifiedCreateAllInputs(connectionMap) {
}
// remove all traces of %l at the earliest possible time
this.procCode_ = this.procCode_.replaceAll("%l ", "");
this.procCode_ = this.procCode_.replace(/%l /g, "");
}
//https://github.com/scratchfoundation/scratch-blocks/blob/f210e042988b91bcdc2abeca7a2d85e178edadb2/blocks_vertical/procedures.js#L565
+1 -1
View File
@@ -1 +1 @@
{"commit":"c237cfa"}
{"commit":"2b49ae3"}