From d7779fc95adc8733916741da07809af30b00735f Mon Sep 17 00:00:00 2001 From: Maximilien LEDOUX Date: Sat, 19 Mar 2022 13:49:12 +0100 Subject: [PATCH] =?UTF-8?q?Nouvelles=20Regex=20:=20FFE=5FSAVE=5FFILE=5FERR?= =?UTF-8?q?OR=20valid=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../protocol/rules/writer/SaveFileErrorRule.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileErrorRule.java b/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileErrorRule.java index abf15f1..25d3b62 100644 --- a/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileErrorRule.java +++ b/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileErrorRule.java @@ -2,18 +2,21 @@ package lightcontainer.protocol.rules.writer; import lightcontainer.domains.client.Context; import lightcontainer.protocol.ProtocolWriter; +import lightcontainer.protocol.StandardizedDefinitions; import lightcontainer.utils.ShaHasher; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; +import static lightcontainer.protocol.StandardizedDefinitions.FFE_SAVE_FILE_ERROR; + /** * Règle signifiant que la sauvegarde d'un fichier a échoué */ public class SaveFileErrorRule extends ProtocolWriter { //"^SAVEFILE_ERROR\r\n$" - private static final String PATTERN = "^SAVEFILE_ERROR\r\n$"; + private static final String PATTERN = FFE_SAVE_FILE_ERROR; public static final String NAME = "SAVEFILE_ERROR";