summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorUltra2D <Ultra2D@users.noreply.github.com>2017-02-10 10:18:32 +0100
committerUltra2D <Ultra2D@users.noreply.github.com>2017-02-10 10:18:32 +0100
commit6a89dadf7b5af34d582b5f09b855c7dc96b481a4 (patch)
tree3fc37f0278ce4eec89c8168bd8350a6f7e2c1679 /lib/oxidized
parent0f68436f7f41b244428c606177a9dd53541ace95 (diff)
Procurve convert next line (NEL) to new line
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/procurve.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb
index c117df3..0b8b672 100644
--- a/lib/oxidized/model/procurve.rb
+++ b/lib/oxidized/model/procurve.rb
@@ -6,6 +6,11 @@ class Procurve < Oxidized::Model
comment '! '
+ # replace next line control sequence with a new line
+ expect /\eE/ do |data, re|
+ data.gsub re, "\n"
+ end
+
# replace all used vt100 control sequences
expect /\e\[\??\d+(;\d+)*[A-Za-z]/ do |data, re|
data.gsub re, ''