Skip to content

Fix hardcoded assignment prefix "h..." #233

@alexstaeding

Description

@alexstaeding

The current MoodleUnpack file has a hardcoded format for the assignment id that begins with "h":

// TODO: Fix this hack
val assignmentId = assignmentIdRegex.matchEntire(candidate.name)
?.run { groups["assignmentId"]?.value }
?.padStart(length = 2, padChar = '0')
?.let { "h$it" }

Fix this so that other assignment id formats may be used (and may not necessarily be numbers)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions