|
@@ -136,6 +136,13 @@ const curQuestion = ref("");
|
|
const curQuestionIndex = ref(-1);
|
|
const curQuestionIndex = ref(-1);
|
|
|
|
|
|
const toUpperCase = () => {
|
|
const toUpperCase = () => {
|
|
|
|
+ if ((curQuestion.value || "").includes("#")) {
|
|
|
|
+ if (curQuestion.value.length > 1) {
|
|
|
|
+ curQuestion.value = "#";
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ curQuestion.value = curQuestion.value.replace(/[^a-zA-Z]/g, "");
|
|
|
|
+ }
|
|
curQuestion.value = curQuestion.value.toUpperCase();
|
|
curQuestion.value = curQuestion.value.toUpperCase();
|
|
};
|
|
};
|
|
|
|
|