Skip to content

Only capture lowercase words - Camel case labels and separators are allowed in scroll list #5

Description

@faultcraft

I experienced an issue with capturing scrolls from a clan that has camelcase labels and '----' string under the labels. I worked around it by only capturing items that started with a lowercase letter.

Trigger: BackItUp_CaptureScrollList

if isPrompt() then return end
if matches[2] == backItUp.orgname then return end

backItUp.scrolls = backItUp.scrolls or {}
for item in string.gmatch(matches[2], "%a+") do
if item:len() > 0 and string.match(item, "^[a-z]") then
table.insert(backItUp.scrolls, item)
end
end

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions