Browse Source

补充反斜杠/不能在句首

zq 1 month ago
parent
commit
bbb0552629
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/book/courseware/data/common.js

+ 1 - 1
src/views/book/courseware/data/common.js

@@ -323,6 +323,7 @@ export const TRAILING_PUNCT = new Set([
   '》',
   '〉',
   '>',
+  '/',
 ]);
 
 export const LEADING_PUNCT = new Set(['“', '‘', '"', "'", '(', '(', '[', '【', '{', '『', '《', '〈', '<']);
@@ -433,6 +434,5 @@ export function mergePunctuationToWords(wordList) {
     result.push(cloned);
     lastWord = cloned;
   }
-  console.log('result', result);
   return result;
 }