Skip to content

Commit

Permalink
Improved the CLI::Commands::UserAgents#run regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 4, 2024
1 parent 708bd0e commit 27dcb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cli/commands/user_agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
expect {
subject.run
}.to output(
%r{^Mozilla/5\.0 \([^\)]+(?:\(\d+\)[^\)]+)?\) AppleWebKit/537\.36 \(KHTML, like Gecko\) Chrome/\d+(\.\d+)* (?:Mobile )?Safari/537\.36$}
%r{^Mozilla/5\.0 \([^\(\)]+(?:\([^\)]+\)[^\)]+)?\) AppleWebKit/537\.36 \(KHTML, like Gecko\) Chrome/\d+(\.\d+)* (?:Mobile )?Safari/537\.36$}
).to_stdout
end
end
Expand Down

0 comments on commit 27dcb7b

Please sign in to comment.