NameIT icon indicating copy to clipboard operation
NameIT copied to clipboard

Arguments with quoted newlines will prevent the generator from being parsed correctly

Open briantist opened this issue 5 years ago • 0 comments

Example:

Invoke-Generate -Template "[randomdate 1/1/1999 5/5/5555 'yyyy
2
3']"

Just outputs the command since it doesn't get recognized properly as a generator.

I think this is due to the regex being used to split, since it uses . but is not in s mode. Requires some further investigation.

Also some ideas I had for improving the parsing of templates might outright resolve this anyway.

briantist avatar May 28 '19 00:05 briantist