mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user