aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/helper/PatternUtil.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-20 09:00:27 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-20 09:00:27 -0700
commit1fb6c86ea12f325bfdb372d98400c8a904c6e927 (patch)
tree96ae1986eb024145eae836c59ecb369ab20c0190 /src/main/java/org/traccar/helper/PatternUtil.java
parent3899dddebcee96b80d5c939f50b846ef5042a7ff (diff)
downloadtrackermap-server-1fb6c86ea12f325bfdb372d98400c8a904c6e927.tar.gz
trackermap-server-1fb6c86ea12f325bfdb372d98400c8a904c6e927.tar.bz2
trackermap-server-1fb6c86ea12f325bfdb372d98400c8a904c6e927.zip
Support TK103 cell info (fix #4925)
Diffstat (limited to 'src/main/java/org/traccar/helper/PatternUtil.java')
-rw-r--r--src/main/java/org/traccar/helper/PatternUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/helper/PatternUtil.java b/src/main/java/org/traccar/helper/PatternUtil.java
index 74813e1d9..a46c7b7b4 100644
--- a/src/main/java/org/traccar/helper/PatternUtil.java
+++ b/src/main/java/org/traccar/helper/PatternUtil.java
@@ -63,7 +63,7 @@ public final class PatternUtil {
for (int i = 0; i < pattern.length(); i++) {
try {
- Matcher matcher = Pattern.compile("(" + pattern.substring(0, i) + ").*").matcher(input);
+ Matcher matcher = Pattern.compile("(" + pattern.substring(0, i) + ")[\\s\\S]*").matcher(input);
if (matcher.matches()) {
result.patternMatch = pattern.substring(0, i);
result.patternTail = pattern.substring(i);