mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Fixes cropping that would happen when using an dot (.) in the beggining of the text.
This commit is contained in:
@@ -30,7 +30,7 @@ IEnumerable<string> ReadPattern(int limitHeight)
|
||||
// game allowed you to input an '.' before the spaces to circumvent this limitation. This behavior was
|
||||
// kept for compatibility.
|
||||
if (input.StartsWith('.'))
|
||||
yield return input.Substring(1, input.Length - 2);
|
||||
yield return input.Substring(1, input.Length - 1);
|
||||
|
||||
yield return input;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user