qarmin / szyszka

Szyszka is fast and powerful file renamer
MIT License
846 stars 31 forks source link

Why use hidden characters in rules_settings.json? #86

Open lamyergeier opened 7 months ago

lamyergeier commented 7 months ago

A screenshot when I opened the file in vscode: (we can see the unicode characters U+2068 etc. Why is it necessary?

image

qarmin commented 7 months ago

Are you sure, that input not contains this characters or file was not externally modified?

Both: https://github.com/qarmin/szyszka/blob/fb6938cb923de4702f78efb2b42b1c439b528a78/i18n/en/szyszka.ftl#L214

and

https://github.com/qarmin/szyszka/blob/fb6938cb923de4702f78efb2b42b1c439b528a78/src/rule_read.rs#L88-L97

not show any non standard non printable characters in https://www.soscisurvey.de/tools/view-chars.php

The presence of such characters not cause any problems, but they are not needed and can be removed

lamyergeier commented 7 months ago

I haven't manually modified the file by myself, I opened it for the first time. I installed using flatpak.

$ flatpak list | grep sz
Szyszka com.github.qarmin.szyszka   3.0.0   stable  flathub system

My settings in vscode indicates every hidden character.