extractUserAgent

Extract the matchable part of a user agent string, essentially stopping at the first invalid character.

package @safe static @nogc pure
string
extractUserAgent
(
string user_agent
)

Examples

'Googlebot/2.1' becomes 'Googlebot'

Meta