Closed samanpwbb closed 2 years ago
Cool, let's take this as is - there's a low possibility that an xd could be written like this:
## Grid
OKGO
H..B
O..J
H..E
O..C
H..T
## Clues
A1. Band with two words. ~ OK|GO
D1. Reverse santa. ~ OH|OHO|H
D2. A thing. ~ OBJECT
## Metadata
title: Square
author: Orta
date: 2021-03-16
editor: Orta Therox
splitcharacter: |
which might not work out, because I think this is the first time the order in the parser matters. However, I'm happy to deal with that edge case if/when we hit it.
@orta The sort order issue handled should be handled here! we don’t run parseSplitsFromAnswer
until after the first pass, so we're certian to have our SplitCharacter if it exists. I can add a test case if that's helpful.
Ace, this is great then
This PR introduces the concept of splits to the xd parser.
@orta for review.