string-template icon indicating copy to clipboard operation
string-template copied to clipboard

Added an option to throw an error on no matching substitutions.

Open nrjpoddar opened this issue 8 years ago • 1 comments

Added an options argument to exported function which can enable the functionality of throwing an error if template pattern doesn't match any of the passed argument strings.

Default behavior is as before i.e. no matching substitutions are replaced with empty strings.

nrjpoddar avatar Jan 04 '17 17:01 nrjpoddar

Coverage Status

Coverage remained the same at 100.0% when pulling 5f1b99e10e0219f52d6a8dd1ccf979b4c3e7b38a on nrjpoddar:rejectNoMatches into f63e51a5b60e98e5be1ed07da20332d415482edb on Matt-Esch:master.

coveralls avatar Jan 04 '17 17:01 coveralls