fix: Trim backticks from nl generated dsl
This commit is contained in:
1 parent
957f6cb33f
commit
9df4ecf6c8
1 file changed
+3
@@ -13,6 +13,9 @@ namespace bts.BlueOrb {
|
||||
public DSLStream(string dsl, IDataStreamFactory streamFactory) {
|
||||
Log.Gen.info($"DSLStream.cons dsl: {dsl}");
|
||||
_dsl = dsl;
|
||||
if (dsl.StartsWith("```dsl\n")) {
|
||||
dsl = string.Concat("```", dsl.AsSpan(7));
|
||||
}
|
||||
var rs = build_stream(streamFactory, dsl) ?? new LiteralStream("error", $"msg:invalid dsl");
|
||||
mySetRealSource(rs);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user