OctopusDeploy / Octostache

| Public | The variable substitution syntax for Octopus Deploy
Other
5 stars 24 forks source link

ParseTemplateAndGetArgumentNames is broken #70

Open AndrewSav opened 2 years ago

AndrewSav commented 2 years ago

Many years ago, I asked for ParseTemplateAndGetArgumentNames and my wish was granted. However somewhere along the way it got broken.

Steps to reproduce:

     foreach( var a in TemplateParser.ParseTemplateAndGetArgumentNames("#{a.b.c}"))
     {
        Console.WriteLine(a);
     }

What I'm expecting to see:

a.b.c

What I'm actually seeing:

a
b
c

The templating engine still correctly treats a.b.c as a single var, but ParseTemplateAndGetArgumentNames regressed somewhere and returns wrong result.