Piotrekol / StreamCompanion

osu! information extractor, ranging from selected map info to live play data
MIT License
375 stars 59 forks source link

Update Commands preview wiki page #85

Open de-odex opened 5 years ago

de-odex commented 5 years ago

... with formatting options for each token

edit: ???

Piotrekol commented 5 years ago

it is c# string formatter with optional custom "Eval:" directive that allows for simple math.

wiki is currently both outdated and straight missing pages for several SC features.

For next month or so I plan on suspending any sort of new feature additions(besides bugfixes) and focus on wiki and code refactoring.

de-odex commented 5 years ago

(wouldn't the Eval: directive allow for code injection? I feel like it's unsafe) disregard, missed the Evaluate function you made just for this more issues with the Eval: directive would be what if I wanted to format the token again after?

Piotrekol commented 5 years ago

wouldn't the Eval: directive allow for code injection? I feel like it's unsafe

it's not https://docs.microsoft.com/en-us/dotnet/api/system.data.datacolumn.expression?view=netframework-4.8

I wanted to format the token again after?

You can't. use output patterns for that.