Merge pull request #9325 from maxim-belkin/cpu-flags

cpu.rb: drop field name and a colon from flags
This commit is contained in:
Mike McQuaid
2020-12-01 12:44:56 +00:00
committed by GitHub
@@ -69,8 +69,9 @@ module Hardware
end
end
# Supported CPU instructions
def flags
@flags ||= cpuinfo[/^(flags|Features).*/, 0]&.split
@flags ||= cpuinfo[/^(?:flags|Features)\s*: (.*)/, 1]&.split
@flags ||= []
end