Skip to content

Commit 022e132

Browse files
jiripudileemeli
authored andcommitted
Do not overwrite defaultOptions in convert() (#2)
1 parent cbff803 commit 022e132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const getMessageFormat = (
6666
}
6767

6868
const convert = (parse, input, options) => {
69-
options = Object.assign(defaultOptions, options)
69+
options = Object.assign({}, defaultOptions, options)
7070
const { headers, translations } = parse(input, options.defaultCharset)
7171
if (!options.pluralFunction) {
7272
options.pluralFunction = getPluralFunction(headers['plural-forms'])

0 commit comments

Comments
 (0)