Skip to content

@onlyworlds/sdk 4.227.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 19:07
· 13 commits to main since this release

Fixed

  • A name that holds half of a surrogate pair is refused. The world file's name check, and so fileNameFault, elementIdFault, worldFolderFiles and writeWorldFile, now refuse a name or an id that is not well-formed Unicode, in the words "is not well-formed Unicode: it holds half of a surrogate pair" (folder format, ruled after serial 150). No archive name can carry such a name: written out as UTF-8 it became another name, so an id of abc and a lone high surrogate was packed as abc and U+FFFD, and the two beside each other were packed as two entries of one name, an archive readWorldFile refuses as duplicate. A whole pair (an emoji) is one character and passes as before.