mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
refactored assignment markdown parsing and creation to their own classes
This commit is contained in:
@@ -50,11 +50,11 @@ public static class LocalAssignmentMarkdownParser
|
||||
private static List<string> parseSubmissionTypes(string input)
|
||||
{
|
||||
input = input.Replace("\r\n", "\n");
|
||||
List<string> submissionTypes = new List<string>();
|
||||
List<string> submissionTypes = [];
|
||||
|
||||
// Define a regular expression pattern to match the bulleted list items
|
||||
string startOfTypePattern = @"- (.+)";
|
||||
Regex regex = new Regex(startOfTypePattern);
|
||||
Regex regex = new(startOfTypePattern);
|
||||
|
||||
var words = input.Split("SubmissionTypes:");
|
||||
var inputAfterSubmissionTypes = words[1];
|
||||
|
||||
Reference in New Issue
Block a user