This commit is contained in:
Dmitry Trofimov
2018-11-06 17:48:47 +01:00
parent aa825c4bbb
commit 4c45cb8cc4
@@ -176,7 +176,7 @@ public class PythonDocumentationMap implements PersistentStateComponent<PythonDo
continue;
}
if (entry.getKey().endsWith("?")) {
String regex = "\\{" + entry.getKey().replace("?", "\\?") + "([^}]+)\\}";
String regex = "\\{" + Pattern.quote(entry.getKey()) + "([^}]+)\\}";
Matcher matcher = Pattern.compile(regex).matcher(urlPattern);
if (matcher.find()) {