From 51fcc84ea4f5acde42bf7e378674b591738f9ce9 Mon Sep 17 00:00:00 2001
From: benbenben2 <110821832+benbenben2@users.noreply.github.com>
Date: Fri, 31 Mar 2023 23:29:54 +0200
Subject: [PATCH] add hyphens for properties in folksonomy
---
html/js/folksonomy.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html/js/folksonomy.js b/html/js/folksonomy.js
index 1fdd9470a3f57..410c23318ee0e 100644
--- a/html/js/folksonomy.js
+++ b/html/js/folksonomy.js
@@ -172,7 +172,7 @@ function displayFolksonomyPropertyValues() {
'
' +
'' +
'Example: color' +
- ' Can countain only minus letters, numbers, "_", and ":"' +
+ ' Can contain only lower case letters, numbers, "-", "_", and ":"' +
'
' +
'
' +
'' +
@@ -208,7 +208,7 @@ function displayFolksonomyPropertyValues() {
// Control new property entry
$("#fe_form_new_property").on("keyup", function() {
- const kControl = /^[a-z0-9_]+(\\:[a-z0-9_]+)*$/; // a property is made of minus letters + numbers + _ and :
+ const kControl = /^[a-z0-9_-]+(\\:[a-z0-9_-]+)*$/; // a property is made of lower case letters + numbers + - + _ and :
if ($("#fe_form_new_property").val() && kControl.test($("#fe_form_new_property").val()) === false) {
console.log("k syntax is bad!");
$("#fe_prop_err").css("visibility", "visible");