Skip to content

Commit

Permalink
fix: indexof some test, see https://sonic-cloud.wiki/d/3030-242classname
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Apr 25, 2023
1 parent 4f864f2 commit 782a2ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public List<PocoElement> findElements(String selector, String expression) throws

private String parseAttr(String express) {
String result = "[";
String attrExpression = express.substring(express.indexOf("(") + 1, express.indexOf(")"));
String attrExpression = express.substring(express.indexOf("(") + 1, express.lastIndexOf(")"));
if (attrExpression.startsWith("\"") && attrExpression.endsWith("\"")) {
attrExpression = "name=" + attrExpression.replace("\"", "");
}
Expand Down

0 comments on commit 782a2ba

Please sign in to comment.