aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-25 16:44:16 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-25 16:44:16 +0100
commit64672694c35d3bd2358ae7412151f70b8740897c (patch)
tree842fe28d6acf0f06c5c2fd52e80c9201391dafe0 /anki-card-template
parent1536dfc503e66e2e38a41fa2589fcd120e36ab41 (diff)
remove redundant checks for script type
Diffstat (limited to 'anki-card-template')
-rw-r--r--anki-card-template/card.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/anki-card-template/card.js b/anki-card-template/card.js
index 742184a..78aae6a 100644
--- a/anki-card-template/card.js
+++ b/anki-card-template/card.js
@@ -23,20 +23,17 @@ function calculateTagHue(input) {
function HTMLtoParseArr(input) {
var out = [];
- var node = { data: "", type: "text", latin: false, japanese: false };
+ var node = { data: "", type: "text" };
var tag_open = false;
var new_node = false;
var clear = () => {
out.push(node);
- node = { data: "", type: "text", latin: false, japanese: false };
+ node = { data: "", type: "text" };
};
for (var i = 0; i < input.length; i++) {
new_node = false;
- if (!charNotJapanese(input[i])) node.japanese = true;
- if (!charNotLatin(input[i])) node.latin = true;
-
if (input[i] == "<") {
clear();
tag_open = true;