Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko committed Sep 9, 2024
1 parent aac33ef commit 8f32ae4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions config.logseq.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
"type": "content",
"regex": "",
"replace": ""
},
{
"type": "tag",
"regex": "",
"replace": ""
}
],
"pathSeparator": "/",
Expand Down
5 changes: 5 additions & 0 deletions config.tana.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
"type": "content",
"regex": "",
"replace": ""
},
{
"type": "tag",
"regex": "",
"replace": ""
}
],
"generateNakedUrls": true,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ <h5 class="info-text">Attachments</h5>
<label for="globalReplacementSettings">
Global search and replace (regexp) in note title, content and tags
<br><div style='font-size: 12px;'><i>(
Please provide settings in valid JSON Array format, each item has to have <b>type</b> ('title' or 'content'), <b>regex</b> (what you want to replace as a valid regular expression) and <b>replace</b> (what you want to push instead of the matched text) properties)</i></div>
Please provide settings in valid JSON Array format, each item has to have <b>type</b> ('title', 'content' or 'tag'), <b>regex</b> (what you want to replace as a valid regular expression) and <b>replace</b> (what you want to push instead of the matched text) properties)</i></div>
</label>
<textarea class="form-control configurationItem" name="globalReplacementSettings" id="globalReplacementSettings" rows="15"></textarea>

Expand Down
2 changes: 1 addition & 1 deletion src/ui/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const updateDomAndConfig = (configItem, disable) => {
if (domItem.getAttribute('type') === 'checkbox'){
document.getElementById(configItem.name).checked = configItem.value;
} else {
if (isObject(itemValueToStore)){
if (isObject(itemValueToStore) || Array.isArray(itemValueToStore)){
itemValueToStore = JSON.stringify(configItem.value)
document.getElementById(configItem.name).value = JSON.stringify(configItem.value, undefined, 2);;
}
Expand Down

0 comments on commit 8f32ae4

Please sign in to comment.