Skip to content

Commit c31471e

Browse files
committed
filter.py: remove newline after // END SOLUTION
1 parent f3d0e37 commit c31471e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/filter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
template_checker = regex.compile(r"<([^\";<>]|(?0))*>")
4545
template_checker2 = regex.compile(r"<([^\";<>]|(?0))*>$")
4646
nullfinder = regex.compile(r"null([^\w]|$)")
47-
solution_finder = regex.compile(r"(//\s*BEGIN SOLUTION|\/\*\s*BEGIN SOLUTION\s*\*\/)((?!(//\s*BEGIN SOLUTION|\/\*\s*BEGIN SOLUTION\s*\*\/|//\s*END SOLUTION|\/\*\s*END SOLUTION\s*\*\/)).)*(//\s*END SOLUTION|\/\*\s*END SOLUTION\s*\*\/)",
47+
solution_finder = regex.compile(r"(//\s*BEGIN SOLUTION|\/\*\s*BEGIN SOLUTION\s*\*\/)((?!(//\s*BEGIN SOLUTION|\/\*\s*BEGIN SOLUTION\s*\*\/|//\s*END SOLUTION|\/\*\s*END SOLUTION\s*\*\/)).)*(//\s*END SOLUTION[^\n]*\n?|\/\*\s*END SOLUTION\s*\*\/)",
4848
regex.DOTALL | regex.IGNORECASE)
4949
server_internal_finder = regex.compile(r"(?://|/\*)\s*BEGIN\s+SERVER\s+INTERNAL(?:(?!(?://|/\*)\s*END\s+SERVER\s+INTERNAL).)*(?:(?://|/\*)\s*END\s+SERVER\s+INTERNAL\s*(?:\*/)?)?",
5050
regex.DOTALL | regex.IGNORECASE)

0 commit comments

Comments
 (0)