소스 검색

word = item.trim()

visuddhinanda 2 년 전
부모
커밋
f351b72c79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dashboard/src/components/template/Nissaya/NissayaMeaning.tsx

+ 1 - 1
dashboard/src/components/template/Nissaya/NissayaMeaning.tsx

@@ -10,7 +10,7 @@ export interface IMeaning {
 }
 
 export const nissayaBase = (item: string, endings: string[]): IMeaning => {
-  let word = item.replaceAll("။", "");
+  let word = item.trim().replaceAll("။", "");
   let end: string[] = [];
   for (let loop = 0; loop < 3; loop++) {
     for (let i = 0; i < word.length; i++) {