File tree 1 file changed +1
-1
lines changed 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ function screen_list() { # Params: RETURN Optional:SCREEN_NAME
285
285
local screen_list_return=" " ;
286
286
287
287
# FLIST=$( screen -ls | grep -P "^\t([0-9]{1,5})\.([^\t\s\.]+)\t\(([0-9]{2}\/[0-9]{2}\/[0-9]{4})\s([0-9]{2}\:[0-9]{2}\:[0-9]{2})\s(PM)\)\t\(([^\(\)]*)\)$" | sed -e 's/^[ \t]*//' ) # @Deprecated
288
- screen_list_return=$( screen -ls | grep -P " ^(\t|\s)([0-9]{1,5 })\.([^\t\s\.]+)(\t|\s)\(([0-9]{2}[\/\.][0-9]{2}[\/\.]([0-9]{2}|[0-9]{4}))\s([0-9]{2}\:[0-9]{2}\:[0-9]{2})(\s(PM|AM))?\)(\t|\s)\(([^\(\)]*)\)$" | sed -e ' s/^[ \t]*//' )
288
+ screen_list_return=$( screen -ls | grep -P " ^(\t|\s)+ ([0-9]{1,})\.([^\t\s\.]+)(\t|\s)+ \(([0-9]{2}[\/\.][0-9]{2}[\/\.]([0-9]{2}|[0-9]{4}))\s([0-9]{2}\:[0-9]{2}\:[0-9]{2})(\s(PM|AM))?\)(\t|\s)+ \(([^\(\)]*)\)$" | sed -e ' s/^[ \t]*//' )
289
289
290
290
if [[ " ${2} " =~ ${REGEX_SCREEN_NAME_FULL} ]]; then
291
291
screen_list_return=$( echo " ${screen_list_return} " | grep -P " {2}(\t|\s)" )
You can’t perform that action at this time.
0 commit comments