Skip to content

Commit

Permalink
Fixed the Val statements to use yaml strings
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Nov 6, 2024
1 parent 65f5226 commit 45cc232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/computate/frFR/java/ConfigSite.java
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ public JsonArray regexYamlArray(String champ, String texte) {
public String regexYamlString(String champ, String texte) {
String o = null;
if (champ != null && texte != null) {
String motif = "^" + champ + ": ?([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(\\n^\\w|\\Z)";
String motif = "^" + champ + ": ?([>|-]{0,2}(\\d*)\\n)?([\\s\\S]*?)(?=\\n^\\w|\\Z)";
Matcher m = Pattern.compile(motif, Pattern.MULTILINE).matcher(texte);
boolean trouve = m.find();
if (trouve) {
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/org/computate/frFR/java/IndexerClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,7 @@ else if(classeEstBase) {
Boolean classeRolesTrouves = false;

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

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

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

0 comments on commit 45cc232

Please sign in to comment.