a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[parsing] Allow digits in mfm fn node function names

+6 -2
+1 -1
Iceshrimp.Parsing/Mfm.fs
··· 276 276 |>> fun e -> MfmEmojiCodeNode(e) :> MfmNode 277 277 278 278 let fnNode = 279 - skipString "$[" >>. many1Chars asciiLower 279 + skipString "$[" >>. many1Chars (asciiLower <|> digit) 280 280 .>>. opt (skipChar '.' >>. sepBy1 fnArg (skipChar ',')) 281 281 .>> skipChar ' ' 282 282 .>>. many1Till inlineNode (skipChar ']')
+5 -1
Iceshrimp.Tests/Parsing/MfmTests.cs
··· 349 349 public void TestFn() 350 350 { 351 351 const string input = 352 - "test $[] $[test] $[test ] $[test test] $[test.a test] $[test.a=b test] $[test.a=b,c=e test] $[test.a,c=e test] $[test.a=b,c test]"; 352 + "test $[] $[test] $[test ] $[test test] $[test123 test] $[test.a test] $[test.a=b test] $[test.a=b,c=e test] $[test.a,c=e test] $[test.a=b,c test]"; 353 353 354 354 var some = FSharpOption<IDictionary<string, FSharpOption<string>>>.Some; 355 355 var none = FSharpOption<IDictionary<string, FSharpOption<string>>>.None; ··· 360 360 [ 361 361 new MfmTextNode("test $[] $[test] $[test ] "), 362 362 new MfmFnNode("test", 363 + none, 364 + test), 365 + new MfmTextNode(" "), 366 + new MfmFnNode("test123", 363 367 none, 364 368 test), 365 369 new MfmTextNode(" "),