Fix appendages parsing to handle multiple appendages

This commit is contained in:
2026-02-01 19:02:11 +02:00
committed by Yaroslav (Ice) Sheremet
parent 119a9ce62c
commit 3f63340920
3 changed files with 112 additions and 15 deletions

View File

@@ -404,7 +404,8 @@ const TEST_CASES = {
{ code: 'Ph+', expected: 'One more head than normal - \'I got ahead in advertising!\'' },
{ code: 'Pw-', expected: 'One less wing than normal - \'I have only one wing!\'' },
{ code: 'Pl!', expected: 'Many legs - \'I am a millipede!\'' },
{ code: 'Pl^', expected: 'Legs end in webbed feet - \'Don\'t call me a frog!\'' }
{ code: 'Pl^', expected: 'Legs end in webbed feet - \'Don\'t call me a frog!\'' },
{ code: 'Phvwalt', expected: 'A head, a pair of horns or spines on the head, a pair of wings, a pair of arms, a pair of legs, and a tail' }
]
};