Skip to content

Commit 3e14aa8

Browse files
authored
chore: fix update script to revert code format (#191)
1 parent 2e8f1af commit 3e14aa8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/update-unicode-properties.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,24 +269,26 @@ function makeClassDeclarationCode(versions: string[]): string {
269269
const fields = versions
270270
.map(
271271
(v) =>
272-
`private _raw${v}: string\nprivate _set${v}: Set<string> | undefined`,
272+
`private _raw${v}: string\n\nprivate _set${v}: Set<string> | undefined`,
273273
)
274-
.join("\n")
274+
.join("\n\n")
275275
const parameters = versions.map((v) => `raw${v}: string`).join(", ")
276276
const init = versions.map((v) => `this._raw${v} = raw${v}`).join("\n")
277277
const getters = versions
278278
.map(
279279
(v) =>
280280
`public get es${v}(): Set<string> { return this._set${v} ?? (this._set${v} = new Set(this._raw${v}.split(" "))) }`,
281281
)
282-
.join("\n")
282+
.join("\n\n")
283283

284284
return `
285285
class DataSet {
286286
${fields}
287+
287288
public constructor(${parameters}) {
288289
${init}
289290
}
291+
290292
${getters}
291293
}
292294
`

0 commit comments

Comments
 (0)