Fix some tag related issues.

This commit is contained in:
James Cole
2019-08-11 07:29:05 +02:00
parent f67a9547cc
commit 788bde5562
5 changed files with 18 additions and 7 deletions

View File

@@ -297,7 +297,7 @@
foreignCurrency = null;
// loop tags
for (let tagKey in row.tags) {
if (row.tags.hasOwnProperty(tagKey) && /^0$|^[1-9]\d*$/.test(tagKey) && key <= 4294967294) {
if (row.tags.hasOwnProperty(tagKey) && /^0$|^[1-9]\d*$/.test(tagKey) && tagKey <= 4294967294) {
tagList.push(row.tags[tagKey].text);
}
}