Code is located here:
It takes two files, which both contain lines such as
const foo = "bar",
and where the value of the const varies in the second file from the first, it replaces it with the value in the second file. Otherwise, it leaves the first file untouched.
It works by scanning the source file for const <foo> = <bar>, then dropping <bar> into a collection with <foo> as the index. It then opens the template file, and looks for const <foo> = <bar>, then uses <foo> as an index to retrieve <bar.>
It's failing on the retrevial function, and nothing I'm doing is working. Originally, I was dumping the string <bar> into the collection, with <foo> as the index - and I was getting error messages. I tried converting over to a class/class module combination, with no luck. Any help would be much appreciated.