Alima777 commented on a change in pull request #1496:
URL: https://github.com/apache/incubator-iotdb/pull/1496#discussion_r462813871



##########
File path: server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
##########
@@ -53,11 +53,13 @@
   // e.g.,  .s1
   private static final String NODE_MATCHER = "[" + PATH_SEPARATOR + "]" + 
ID_MATCHER;
 
-  // for path like: root.sg1.d1."1.2.3" or root.sg1.d1.'1.2.3', only occurs in 
the end of the path and only occurs once
+  // for path like: root.sg1.d1."1.2.3", only occurs in the end of the path 
and only occurs once
   private static final String NODE_WITH_QUOTATION_MARK_MATCHER =
-      "[" + PATH_SEPARATOR + "][\"|\']" + ID_MATCHER + "(" + NODE_MATCHER + 
")*[\"|\']";
+      "[" + PATH_SEPARATOR + "][\"]" + ID_MATCHER + "(" + NODE_MATCHER + 
")*[\"]";
   public static final Pattern PATH_PATTERN = Pattern
       .compile(PATH_ROOT + "(" + NODE_MATCHER + ")+(" + 
NODE_WITH_QUOTATION_MARK_MATCHER + ")?");
+  public static final Pattern NODE_PATTERN1 = Pattern.compile(ID_MATCHER);
+  public static final Pattern NODE_PATTERN2 = Pattern.compile("[\"]" + 
ID_MATCHER + "(" + NODE_MATCHER + ")*[\"]");

Review comment:
       Fixed.

##########
File path: server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
##########
@@ -53,11 +53,13 @@
   // e.g.,  .s1
   private static final String NODE_MATCHER = "[" + PATH_SEPARATOR + "]" + 
ID_MATCHER;

Review comment:
       Fixed.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to