|
|
@ -68,10 +68,13 @@ namespace Fungus |
|
|
|
m = m.NextMatch(); |
|
|
|
m = m.NextMatch(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (position < storyText.Length - 1) |
|
|
|
if (position < storyText.Length) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string postText = storyText.Substring(position, storyText.Length - position); |
|
|
|
string postText = storyText.Substring(position, storyText.Length - position); |
|
|
|
AddWordsToken(tokens, postText); |
|
|
|
if (postText.Length > 0) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
AddWordsToken(tokens, postText); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|