Skip to content

Commit

Permalink
fix: add comment to preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
rikusen0335 authored Jan 5, 2024
1 parent bab961c commit da27d40
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit da27d40

Please sign in to comment.