-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MSG parse issue with CPTDTXT.MSG (#557)
* Perform flushing of large line buffers if necessary to prevent overflows in LineBreaker * Fix MSG parse issue with CPTDTXT.MSG MSG parsing code would enter a junk state when encountering a \r\n immediately after an identifier, but it should allow the transition to the SPACE state instead. Technically \r\n are space characters after all. * Msg Parser Refactor * Handle Help Text Before MSG Key * Ignore CR in MSG File Values * First Swag at Update Values * Unit Tests passing locally * Added XML Comments on Methods * Clarification * Unit Tests for MsgFile Parser Methods * Use Char Values (Easier to Read) * Specific Unit Test for Weird MajorMUD Formatting * Removed Debug * Update MSG File Integration Tests for Escape Characters * Fix Issue of too many characters being truncated when escaping a curly bracket * Fix Issue of no space between KEY and VALUE curly Bracket - Properly parse if format is `KEY{VALUE}` - Unit + Integration Test Updates * Rename KEY to IDENTIFIER Co-authored-by: Eric P. Nusbaum <[email protected]>
- Loading branch information
Showing
5 changed files
with
570 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
LEVEL0 {MBBSEmu Test MSG File for MajorMUD Scenarios} | ||
|
||
LEVEL1 {Hardware Setup Options} | ||
|
||
LEVEL3 {Security and Accounting Options} | ||
|
||
LEVEL4 {Configuration Options} | ||
|
||
TEST1{This is topic 1: value} S 30 Help Topic String | ||
|
||
LEVEL6 {Text Editable Blocks} | ||
|
||
TEST2 {This is topic 2: value} S 30 Help Topic 2 | ||
|
||
String | ||
|
||
TEST3 {This is topic 3: value} S 40 Help Topic 3 String | ||
|
||
TEST4 {Escaped ~~ Values ~} Test} | ||
|
||
LEVEL8 {FSE Help Messages} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.