On Thu, Oct 22, 2020 at 06:01:47PM +0800, Tong Qunfeng wrote:
- private def consumable_key?(key_name)
- if key_name =~ /(.*)/(.*)$/
'$' in this regex may be useless.
Thanks, RenWen
case $2
when "in_process"
return nil
when "ready"
return $1
when "idle"
return key_name
else
return key_name
end
- end
- return nil
- end
end
2.23.0