[Schmitzm-commits] r2162 - in trunk/schmitzm-core/src: main/java/de/schmitzm/regex test/java/de/schmitzm/regex
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sat Dec 8 23:50:40 CET 2012
Author: alfonx
Date: 2012-12-08 23:50:40 +0100 (Sat, 08 Dec 2012)
New Revision: 2162
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java
trunk/schmitzm-core/src/test/java/de/schmitzm/regex/RegexCacheTest.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java 2012-12-08 22:36:02 UTC (rev 2161)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/regex/RegexCache.java 2012-12-08 22:50:40 UTC (rev 2162)
@@ -140,7 +140,7 @@
}
}
- String ERKENNE_REGEX_RX = "[\\[\\]()?\\\\+{}^$]";
+ String ERKENNE_REGEX_RX = "[\\[\\]()?\\\\+{}^$.]";
public boolean looksLikeRegex(final String suchString) {
// Kein "Matches()" hier verwenden sonst StackOverflow
Modified: trunk/schmitzm-core/src/test/java/de/schmitzm/regex/RegexCacheTest.java
===================================================================
--- trunk/schmitzm-core/src/test/java/de/schmitzm/regex/RegexCacheTest.java 2012-12-08 22:36:02 UTC (rev 2161)
+++ trunk/schmitzm-core/src/test/java/de/schmitzm/regex/RegexCacheTest.java 2012-12-08 22:50:40 UTC (rev 2162)
@@ -14,6 +14,7 @@
assertTrue(rC.looksLikeRegex("^Brezeln"));
assertTrue(rC.looksLikeRegex("Um mit (?:dir|das) Brezeln"));
assertTrue(rC.looksLikeRegex("Um mit [asd] Brezeln"));
+ assertTrue(rC.looksLikeRegex("Gastst.tte"));
assertFalse(rC.looksLikeRegex("asd"));
}
}
More information about the Schmitzm-commits
mailing list