1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-07 21:20:07 +01:00

🐛 Handle trailing semicolon (#170)

This commit is contained in:
2022-05-10 10:26:48 +02:00
parent e81ff2870d
commit 884784d024
4 changed files with 79 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class NginxConfiguration {
*/
lazy var proxy: String? = {
let regex = try! NSRegularExpression(
pattern: #"proxy_pass (?<proxy>.*:\d*);"#,
pattern: #"proxy_pass (?<proxy>.*:\d*)(\/*);"#,
options: []
)