Basic translations?

This commit is contained in:
yuanhau 2025-06-07 00:04:11 +08:00
parent 7314a5fa8a
commit 61a7ecbf12
4 changed files with 17 additions and 2 deletions

View file

@ -33,8 +33,10 @@ const titleOrg = computed(() => props.title);
const titleMaxRegexDetection = /[a-zA-Z0-9]{,10}/;
const title = ref("Draggable Window");
onMounted(() => {
if (!titleMaxRegexPattern.test(titleOrg.value)) {
if (!titleMaxRegexDetection.test(titleOrg)) {
console.log("Max Detected!!");
} else {
title.value = titleOrg;
}
});