StreamCompanion icon indicating copy to clipboard operation
StreamCompanion copied to clipboard

Update Commands preview wiki page

Open de-odex opened this issue 5 years ago • 3 comments

... with formatting options for each token

edit: ???

de-odex avatar Aug 19 '19 05:08 de-odex

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.

Piotrekol avatar Aug 19 '19 16:08 Piotrekol

(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?

de-odex avatar Aug 20 '19 09:08 de-odex

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.

Piotrekol avatar Aug 20 '19 09:08 Piotrekol