From 4870e2233da49f70e01b35723c9480389d6b08f4 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 2 Nov 2018 00:03:31 +0100 Subject: [PATCH] Fix regexes to warn about compression By not including the potential argument in the pattern: - comp-lzo *always* raises a warning - compress *never* raises a warning --- .../Sources/VPN/TunnelKitProvider+FileConfiguration.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift b/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift index a38bdb55..d54ec564 100644 --- a/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift +++ b/Passepartout/Sources/VPN/TunnelKitProvider+FileConfiguration.swift @@ -53,9 +53,9 @@ extension TunnelKitProvider.Configuration { static let auth = Utils.regex("^auth +[\\w\\-]+") - static let compLZO = Utils.regex("^comp-lzo") + static let compLZO = Utils.regex("^comp-lzo.*") - static let compress = Utils.regex("^compress") + static let compress = Utils.regex("^compress.*") static let ping = Utils.regex("^ping +\\d+")