git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3c1169
)
word/edit: ignore missing binomial name in wp download
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 31 Dec 2021 04:02:19 +0000
(
05:02
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 31 Dec 2021 04:29:05 +0000
(
05:29
+0100)
word/editor.js
patch
|
blob
|
history
diff --git
a/word/editor.js
b/word/editor.js
index da403b2217ad31c75178ea6cb1cc958cf7f2d1f1..cee26ac1e9a4aafe01f06f0679719d2f4f62b452 100644
(file)
--- a/
word/editor.js
+++ b/
word/editor.js
@@
-31,7
+31,9
@@
document.addEventListener('DOMContentLoaded', () => {
let transrow = document.getElementById('trans-la');
if (transrow && !transrow.value && wptext) {
const binom = wptext.match(/ class="binomial">.*?<i>(.*?)<\/i>/);
let transrow = document.getElementById('trans-la');
if (transrow && !transrow.value && wptext) {
const binom = wptext.match(/ class="binomial">.*?<i>(.*?)<\/i>/);
- transrow.value = binom[1]
+ if (binom) {
+ transrow.value = binom[1]
+ }
}
// translations from language links
}
// translations from language links