Repository: syncthing/syncthing
File: gui/default/syncthing/core/syncthingController.js (JavaScript)

Code before:
        $scope.removeXattrEntry = function (entry) {
            $scope.currentFolder.xattrFilter.entries = $scope.currentFolder.xattrFilter.entries.filter(function (n) {
                return n !== entry;
            });
        };

        $scope.getXattrHint = function () {
            var xattrFilter = $scope.currentFolder.xattrFilter;
            if (xattrFilter == null || xattrFilter == {}) {
                return '';
            }
            var filterEntries = xattrFilter.entries;
            if (filterEntries.length === 0) {
                return '';
            }

            // When the user explicitely added a wild-card, we don't show hints.
            if (filterEntries.length === 1 && filterEntries[0].match === '*') {
                return '';
            }
            // If all the filter entries are 'deny', we suggest adding a permit-any
            // rule in the end since the default is already deny in that case.
            if (filterEntries.every(function (entry) {
                return entry.permit === false;
            })) {
                return  $translate.instant('Hint: only deny-rules detected while the default is deny. Consider adding `permit any` as last rule.');
            }

            return '';
        };

        $scope.getXattrDefault = function () {
            var xattrFilter = $scope.currentFolder.xattrFilter;
            if (xattrFilter == null || xattrFilter == {}) {
                return '';
            }

            var filterEntries = xattrFilter.entries;
            // No entries present, default is thus 'allow'
            if (filterEntries.length === 0) {
                return $translate.instant('permit');
            }
            // If any rule is present and the last entry isn't a wild-card, the default is deny.
            if (filterEntries[filterEntries.length -1].match !== '*') {
                return $translate.instant('deny');
            }

            return '';
        };

        $scope.validateXattrFilter = function () {

Review comment (suggestion):
```suggestion
                return  $translate.instant('Hint: only deny-rules detected while the default is deny. Consider adding "permit any" as last rule.');
```

I think it's better to stick to `"`. Backticks aren't really used like that outside of Markdown, and the GUI currently uses standard quotes for code already, e.g.

![image](https://user-images.githubusercontent.com/5626656/212771090-54574905-3c99-44ca-abb8-9a909278a07e.png)

Ideally, this should be in `<code></code>`, but HTML tags don't go well inside strings that are supposed to be translated.

Code after:
        $scope.removeXattrEntry = function (entry) {
            $scope.currentFolder.xattrFilter.entries = $scope.currentFolder.xattrFilter.entries.filter(function (n) {
                return n !== entry;
            });
        };

        $scope.getXattrHint = function () {
            var xattrFilter = $scope.currentFolder.xattrFilter;
            if (xattrFilter == null || xattrFilter == {}) {
                return '';
            }
            var filterEntries = xattrFilter.entries;
            if (filterEntries.length === 0) {
                return '';
            }

            // When the user explicitely added a wild-card, we don't show hints.
            if (filterEntries.length === 1 && filterEntries[0].match === '*') {
                return '';
            }
            // If all the filter entries are 'deny', we suggest adding a permit-any
            // rule in the end since the default is already deny in that case.
            if (filterEntries.every(function (entry) {
                return entry.permit === false;
            })) {
                return  $translate.instant('Hint: only deny-rules detected while the default is deny. Consider adding "permit any" as last rule.');
            }

            return '';
        };

        $scope.getXattrDefault = function () {
            var xattrFilter = $scope.currentFolder.xattrFilter;
            if (xattrFilter == null || xattrFilter == {}) {
                return '';
            }

            var filterEntries = xattrFilter.entries;
            // No entries present, default is thus 'allow'
            if (filterEntries.length === 0) {
                return $translate.instant('permit');
            }
            // If any rule is present and the last entry isn't a wild-card, the default is deny.
            if (filterEntries[filterEntries.length -1].match !== '*') {
                return $translate.instant('deny');
            }

            return '';
        };

        $scope.validateXattrFilter = function () {