Skip to content

Commit

Permalink
[transformation] Add swp to ignored extensions in FileTransformationP…
Browse files Browse the repository at this point in the history
…rovider (#3094)

Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K authored Sep 27, 2022
1 parent b808ea6 commit 6d6250e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public class FileTransformationProvider extends AbstractWatchService implements TransformationProvider {
private static final WatchEvent.Kind<?>[] WATCH_EVENTS = { StandardWatchEventKinds.ENTRY_CREATE,
StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY };
private static final Set<String> IGNORED_EXTENSIONS = Set.of("txt");
private static final Set<String> IGNORED_EXTENSIONS = Set.of("txt", "swp");
private static final Pattern FILENAME_PATTERN = Pattern
.compile("(?<filename>.+?)(_(?<language>[a-z]{2}))?\\.(?<extension>[^.]*)$");
private static final Path TRANSFORMATION_PATH = Path.of(OpenHAB.getConfigFolder(),
Expand Down

0 comments on commit 6d6250e

Please sign in to comment.