From 8e92f7408f470677e2a74cec91fe778cf1e2ea0c Mon Sep 17 00:00:00 2001 From: SharkPool <139097378+SharkPool-SP@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:23:23 -0800 Subject: [PATCH] text.js -- remove "surround" block --- extensions/text.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/extensions/text.js b/extensions/text.js index d555d92a67..ecfe15f1a7 100644 --- a/extensions/text.js +++ b/extensions/text.js @@ -215,21 +215,6 @@ }, }, }, - { - opcode: "surround", - blockType: Scratch.BlockType.REPORTER, - text: Scratch.translate("surround [TEXT] with [QUOTE]"), - arguments: { - TEXT: { - type: Scratch.ArgumentType.STRING, - defaultValue: "apple", - }, - QUOTE: { - type: Scratch.ArgumentType.STRING, - menu: "QUOTES", - }, - }, - }, "---", @@ -475,10 +460,6 @@ acceptReporters: true, items: this._initCaseMenu(), }, - quotes: { - acceptReporters: true, - items: ['"', "'", "`", "-", "*", "()", "{}", "[]", "<>", "^$"], - }, positions: { acceptReporters: true, items: [ @@ -787,15 +768,6 @@ return string; } } - surround(args) { - if (args.QUOTE.length == 0) { - return args.TEXT; - } else if (args.QUOTE.length == 1) { - return args.QUOTE + args.TEXT + args.QUOTE; - } else if (args.QUOTE.length > 1) { - return args.QUOTE[0] + args.TEXT + args.QUOTE[1]; - } - } posWith(args) { const STRING = args.STRING.toString(); const SUBSTRING = args.SUBSTRING.toString();