diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb
index <HASH>..<HASH> 100644
--- a/lib/oxidized/model/procurve.rb
+++ b/lib/oxidized/model/procurve.rb
@@ -3,7 +3,7 @@ class Procurve < Oxidized::Model
   # previous command is repeated followed by "\eE", which sometimes ends up on last line
   # additional prompt regex \e\[24;[0-9][hH]([\w\s.-]+# ) catches prompts on telnet with preceding vt100 control chars, where prompt does not start on a new line
   # tested on J4899B HP ProCurve 2650 Switch and J4813A HP ProCurve 2524 Switch
-  prompt /^\r?([\w\s.-]+# )$|\e\[24;[0-9][hH]([\w\s.-]+# )/
+  prompt  /^(\r|\e\[24;[0-9][hH])?([\w\s.-]+# )$/
 
   comment '! '
Clean up procurve prompt regexp (#<I>)