Skip to content

Conversation

@ScratchFakemon
Copy link
Contributor

@ScratchFakemon ScratchFakemon commented Oct 22, 2025

Added modified versions of split and matchRegex that both return an array instead of a specific item, which can be useful in more complex projects. I also moved testRegex so all of the match blocks could be together in the palette.

Pretty quick, so there isn't that much polish. It was mostly an easy copy-and-paste job and things are still left in.

Added modified versions of split and matchRegex that return an array instead of a specific item, which can be useful in more complex projects.
@github-actions github-actions bot added the pr: change existing extension Pull requests that change an existing extension label Oct 22, 2025
@ScratchFakemon ScratchFakemon marked this pull request as draft October 22, 2025 19:48
@ScratchFakemon
Copy link
Contributor Author

Converted to draft so I could fix some things

@ScratchFakemon
Copy link
Contributor Author

There we go

@ScratchFakemon ScratchFakemon marked this pull request as ready for review October 22, 2025 19:50
@ScratchFakemon ScratchFakemon changed the title Add splitJSON and matchRegexJSON strings: Add splitJSON and matchRegexJSON Oct 24, 2025
@ScratchFakemon
Copy link
Contributor Author

To be honest, it's kind of weird that these weren't already in the extension. It's no stranger to more complex features like regexes, which Scratch's target audience wouldn't have much of a grasp on. There are, in fact, genuine use cases for these new blocks—I made these changes to benefit one of my own projects with hopes of making a script much faster than using loops and variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: change existing extension Pull requests that change an existing extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant