mirror of
https://github.com/luau/UniversalSynSaveInstance.git
synced 2026-02-04 14:43:14 +02:00
Reordered pattern to Roblox's Order
This commit is contained in:
@@ -38,14 +38,14 @@ local service = setmetatable({}, {
|
||||
end,
|
||||
})
|
||||
|
||||
local EscapesPattern = "[%z\1-\8\11-\12\14-\31\127-\191\194-\244\"&<>']"
|
||||
|
||||
local EscapesPattern = "[%z\1-\8\11-\12\14-\31\127-\191\194-\244<>\"'&]"
|
||||
-- Order from: https://create.roblox.com/docs/en-us/ui/rich-text#escape-forms
|
||||
local Escapes = {
|
||||
['"'] = """,
|
||||
["&"] = "&",
|
||||
["<"] = "<",
|
||||
[">"] = ">",
|
||||
['"'] = """,
|
||||
["'"] = "'",
|
||||
["&"] = "&",
|
||||
}
|
||||
|
||||
for rangeStart, rangeEnd in string.gmatch(EscapesPattern, "(.)%-(.)") do
|
||||
|
||||
@@ -38,14 +38,14 @@ local service = setmetatable({}, {
|
||||
end,
|
||||
})
|
||||
|
||||
local EscapesPattern = "[%z\1-\8\11-\12\14-\31\127-\191\194-\244\"&<>']"
|
||||
|
||||
local EscapesPattern = "[%z\1-\8\11-\12\14-\31\127-\191\194-\244<>\"'&]"
|
||||
-- Order from: https://create.roblox.com/docs/en-us/ui/rich-text#escape-forms
|
||||
local Escapes = {
|
||||
['"'] = """,
|
||||
["&"] = "&",
|
||||
["<"] = "<",
|
||||
[">"] = ">",
|
||||
['"'] = """,
|
||||
["'"] = "'",
|
||||
["&"] = "&",
|
||||
}
|
||||
|
||||
for rangeStart, rangeEnd in string.gmatch(EscapesPattern, "(.)%-(.)") do
|
||||
|
||||
Reference in New Issue
Block a user