From 27dcb7b784baab4e4244d0daafa4d287134df927 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sun, 4 Aug 2024 02:42:00 -0700 Subject: [PATCH] Improved the `CLI::Commands::UserAgents#run` regex. --- spec/cli/commands/user_agent_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/cli/commands/user_agent_spec.rb b/spec/cli/commands/user_agent_spec.rb index 5ef4c85d..ccacb800 100644 --- a/spec/cli/commands/user_agent_spec.rb +++ b/spec/cli/commands/user_agent_spec.rb @@ -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