Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 947 → Rev 948

/trunk/src/org/tela_botanica/client/util/Pattern.java
29,7 → 29,7
public static String quote(String chaine) {
chaine.replace("\\", "\\\\");
String[] caracteresSpeciaux = {".", "$", "[", "]", "(", ")", "{", "}", "^", "?", "*", "+", "-"};
String[] caracteresSpeciaux = {".", "$", "[", "]", "(", ")", "{", "}", "^", "?", "*", "+", "-", "|"};
for (int i = 0; i < caracteresSpeciaux.length; i++) {
chaine = chaine.replace(caracteresSpeciaux[i], "\\"+caracteresSpeciaux[i]);
}