Skip to content

Commit

Permalink
fix: just delete superscript digits from input
Browse files Browse the repository at this point in the history
instead of adding parens
bc why
  • Loading branch information
DGCK81LNN committed Jan 24, 2024
1 parent 1d095f2 commit 1b0f44a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ export function apply(ctx: Context, config: Config) {
default: false,
})
.replace(/(\s?)\ufdd0(\s?)/g, (_, l, r) => l + r || " ")
.replace(/[⁰¹²³⁴⁵⁶⁷⁸⁹]+/g, "\ufdd0$&\ufdd1")
.replace(/[⁽]?\ufdd0/g, "⁽")
.replace(/\ufdd1[⁾]?/g, "⁾")
.replace(/[⁰¹²³⁴⁵⁶⁷⁸⁹]+/g, "")

hxTranscriber ||= new HanziToXdi8Transcriber()
xhTranscriber ||= new Xdi8ToHanziTranscriber()
Expand Down

0 comments on commit 1b0f44a

Please sign in to comment.