diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn index b61a6556b..a1724e919 100644 --- a/library/Osmocom_VTY_Functions.ttcn +++ b/library/Osmocom_VTY_Functions.ttcn @@ -63,9 +63,9 @@ module Osmocom_VTY_Functions { T.start; alt { - [] pt.receive(pattern "\w+" & VTY_VIEW_SUFFIX) { }; - [] pt.receive(pattern "\w+\# ") { }; - [] pt.receive(pattern "\w+\(*\)\# ") { }; + [] pt.receive(pattern "[\w-]+" & VTY_VIEW_SUFFIX) { }; + [] pt.receive(pattern "[\w-]+\# ") { }; + [] pt.receive(pattern "[\w-]+\(*\)\# ") { }; [] pt.receive(t_vty_unknown) { testcase.stop(fail, "VTY: Unknown Command"); };