From da27d40b8cbf05ef48685a12df158a8decfad4fe Mon Sep 17 00:00:00 2001 From: Soshi Homma Date: Sat, 6 Jan 2024 04:52:59 +0900 Subject: [PATCH] fix: add comment to preprocessor --- .../processors/create-fullwidth-to-halfwidth-preprocessor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/kit/src/lib/masks/number/processors/create-fullwidth-to-halfwidth-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/create-fullwidth-to-halfwidth-preprocessor.ts index e81611f5c..b059e1232 100644 --- a/projects/kit/src/lib/masks/number/processors/create-fullwidth-to-halfwidth-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/create-fullwidth-to-halfwidth-preprocessor.ts @@ -1,5 +1,10 @@ import { MaskitoPreprocessor } from '@maskito/core'; +/** + * Convert full width numbers like 1, 2 to half width numbers 1, 2 + * + * 全角の1、2ののような数字を、半角の1、2のように直すプリプロセッサ + */ export function createFullWidthToHalfWidthPreprocessor(): MaskitoPreprocessor { return ({ elementState, data }) => { const { value, selection } = elementState;