Skip to content

Commit 6e685c4

Browse files
committed
Fix regex construction in CLDC11 checker
1 parent 29bb62e commit 6e685c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/cldc11_api_compat_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def parse_class_info(javap_output: str) -> ClassInfo:
145145
kind = "class"
146146

147147
header_pattern = re.compile(
148-
r"(?P<visibility>public|protected)?\s*(?P<kind>class|interface|enum)\s+",
149-
r"(?P<name>[\w.$]+)",
150-
r"(?:\s+extends\s+(?P<extends>[^\{]+?))?",
148+
r"(?P<visibility>public|protected)?\s*(?P<kind>class|interface|enum)\s+"
149+
r"(?P<name>[\w.$]+)"
150+
r"(?:\s+extends\s+(?P<extends>[^\{]+?))?"
151151
r"(?:\s+implements\s+(?P<implements>[^\{]+))?",
152152
)
153153

0 commit comments

Comments
 (0)