Michael Wang 4 роки тому
батько
коміт
b16ebe35bd
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/features/mark/MarkBoardKeyBoard.vue

+ 1 - 0
src/features/mark/MarkBoardKeyBoard.vue

@@ -209,6 +209,7 @@ export default defineComponent({
         if (
           !(
             scoreStr.value === "0" ||
+            /^0\.[1-9]\d*$/.test(scoreStr.value) ||
             /^[1-9]\d*$/.test(scoreStr.value) ||
             /^[1-9]\d*\.\d*[1-9]$/.test(scoreStr.value)
           )