You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by re...@apache.org on 2013/06/24 04:46:24 UTC

svn commit: r1495905 - /incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java

Author: rezan
Date: Mon Jun 24 02:46:23 2013
New Revision: 1495905

URL: http://svn.apache.org/r1495905
Log:
more delims

Modified:
    incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java

Modified: incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java?rev=1495905&r1=1495904&r2=1495905&view=diff
==============================================================================
--- incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java (original)
+++ incubator/devicemap/trunk/devicemapjava/src/main/java/org/apache/devicemap/client/DeviceMapClient.java Mon Jun 24 02:46:23 2013
@@ -69,11 +69,11 @@ public class DeviceMapClient {
         
         Util.log("classify: "+text+"'");
         
-        String[] parts=text.split(" ");
+        String[] parts=text.split(" |-|_|/|\\\\");
         
         for(int i=0;i<parts.length;i++) {
             String pattern="";
-            for(int j=0;j<3 && (j+i)<parts.length;j++) {
+            for(int j=0;j<4 && (j+i)<parts.length;j++) {
                 pattern+=Util.normalize(parts[i+j]);
                 
                 Device device=patterns.get(pattern);