mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Basic translations?
This commit is contained in:
parent
7314a5fa8a
commit
61a7ecbf12
4 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue