Skip to content

Commit 45cc232

Browse files
committed
Fixed the Val statements to use yaml strings
1 parent 65f5226 commit 45cc232

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/org/computate/frFR/java/ConfigSite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ public JsonArray regexYamlArray(String champ, String texte) {
10631063
public String regexYamlString(String champ, String texte) {
10641064
String o = null;
10651065
if (champ != null && texte != null) {
1066-
String motif = "^" + champ + ": ?([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(\\n^\\w|\\Z)";
1066+
String motif = "^" + champ + ": ?([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
10671067
Matcher m = Pattern.compile(motif, Pattern.MULTILINE).matcher(texte);
10681068
boolean trouve = m.find();
10691069
if (trouve) {

src/main/java/org/computate/frFR/java/IndexerClasse.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ else if(classeEstBase) {
24622462
Boolean classeRolesTrouves = false;
24632463

24642464
if(classeCommentaire != null) {
2465-
String motif = "^Val(:([^:\n]+):)?\\.(\\w+)(\\.([^:\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(\\n^\\w|\\Z)";
2465+
String motif = "^Val(:([^:\\n]+):)?\\.(\\w+)(\\.([^:\\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
24662466
Matcher classeValsRecherche = Pattern.compile(motif, Pattern.MULTILINE).matcher(classeCommentaire);
24672467
boolean classeValsTrouves = classeValsRecherche.find();
24682468
while(classeValsTrouves) {
@@ -3190,7 +3190,7 @@ else if(entiteClasseParts != null && entiteClasseParts.getDocumentSolr() != null
31903190
}
31913191

31923192
if(methodeCommentaire != null) {
3193-
String motif = "^Val(:([^:\n]+):)?\\.(\\w+)(\\.([^:\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(\\n^\\w|\\Z)";
3193+
String motif = "^Val(:([^:\\n]+):)?\\.(\\w+)(\\.([^:\\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
31943194
Matcher entiteValsRecherche = Pattern.compile(motif, Pattern.MULTILINE).matcher(methodeCommentaire);
31953195
boolean entiteValsTrouves = entiteValsRecherche.find();
31963196
while(entiteValsTrouves) {
@@ -4755,7 +4755,8 @@ else if(StringUtils.equalsAny(entiteNomCanonique, VAL_nomCanoniqueString)) {
47554755
}
47564756

47574757
if(methodeCommentaire != null) {
4758-
String motif = "^Val(:([^:\n]+):)?\\.(\\w+)(\\.([^:\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(\\n^\\w|\\Z)";
4758+
String motif = "^Val(:([^:\\n]+):)?\\.(\\w+)(\\.([^:\\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
4759+
String motif = "^Val(:([^:\\n]+):)?\\.(\\w+)(\\.([^:\\n]+))?: ([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
47594760
Matcher methodeValsRecherche = Pattern.compile(motif, Pattern.MULTILINE).matcher(methodeCommentaire);
47604761
boolean methodeValsTrouves = methodeValsRecherche.find();
47614762
while(methodeValsTrouves) {

0 commit comments

Comments
 (0)