From 214221066f480b7ff58d87db954d59f4008b8929 Mon Sep 17 00:00:00 2001 From: patch Date: Wed, 14 Feb 2024 15:31:12 +0100 Subject: [PATCH] Change cfg.sub! to cfg.gsub (#3065) --- lib/oxidized/model/sros.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/model/sros.rb b/lib/oxidized/model/sros.rb index 4e0c0aa47..a1be6026d 100644 --- a/lib/oxidized/model/sros.rb +++ b/lib/oxidized/model/sros.rb @@ -32,7 +32,7 @@ class SROS < Oxidized::Model # # Strip uptime. # - cfg.sub! /^System Up Time.*\n/, '' + cfg.gsub! /^System Up Time.*$/, '' comment cfg end