Skip to content

Commit 16776d0

Browse files
committed
Capture everything for the label-even whitespace at the end.
But don't emit a ' ' version.
1 parent a10a876 commit 16776d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

payload/usr/local/sal/checkin_modules/apple_sus_checkin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def get_pending():
156156
rexp = re.compile(
157157
r'(?m)' # Turn on multiline matching
158158
r'^\s+[*-] ' # Name lines start with 3 spaces and either a * or a -.
159-
r'(?P<name>[^ ].*)[\r\n]' # The rest of that line is the name.
160-
r'.*\((?P<version>[^\)]+)' # Capture the last parenthesized value on the next line.
159+
r'(?P<name>.*)[\r\n]' # The rest of that line is the name.
160+
r'.*\((?P<version>[^ \)]*)' # Capture the last parenthesized value on the next line.
161161
r'[^\r\n\[]*(?P<recommended>\[recommended\])?\s?' # Capture [recommended] if there.
162162
r'(?P<action>\[(?:restart|shut down)\])?' # Capture an action if present.
163163
)

0 commit comments

Comments
 (0)