From: a
Date: Sun, 8 Dec 2024 00:30:19 +0000 (-0500)
Subject: Sat 07 Dec 2024 07:30:19 PM EST
X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=45e044ed86e14da2734700afd842fcb0a29623c4;p=QAnsel.git
Sat 07 Dec 2024 07:30:19 PM EST
---
diff --git a/src/imports/istina-editor.js b/src/imports/istina-editor.js
index 6159c69..b1f8d67 100644
--- a/src/imports/istina-editor.js
+++ b/src/imports/istina-editor.js
@@ -247,13 +247,14 @@ IstinaEditor.highlightForQAnsel = function(txt)
"barrier",
"hvar",
"noise",
+ "shots",
"rand",
"born"
];
for (var i = 0; i < keywords.length; i++)
{
- if (keywords[i] == "hvar" || keywords[i] == "noise") continue;
+ if (keywords[i] == "hvar" || keywords[i] == "noise" || keywords[i] == "shots") continue;
var tmp = new RegExp("(^|[ ]|[;]|[>])" + keywords[i] + "($|[ ]|[<]|[&])", "g");
txt = txt.replaceAll(tmp, x =>
{
@@ -290,7 +291,7 @@ IstinaEditor.highlightForQAnsel = function(txt)
);
txt = txt.replaceAll
(
- /(noise|hvar)( | )[.\-0-9][.\-0-9]*/g,
+ /(noise|hvar|shots)( | )[.\-0-9][.\-0-9]*/g,
x =>
{
x = x.replace(" ", " ");
diff --git a/src/index.html b/src/index.html
index 3e45528..075d0b9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -112,6 +112,7 @@