From 169e5249db9dc9c631e9a3dec58e3727fad5e15f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 8 Dec 2021 12:35:19 +0100 Subject: [PATCH] format type's string correctly --- lib/core/mode.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/mode.rb b/lib/core/mode.rb index b0ceb93..afed831 100644 --- a/lib/core/mode.rb +++ b/lib/core/mode.rb @@ -25,9 +25,8 @@ module Rpl def type( stack, dictionary ) stack, args = Rpl::Lang::Core.stack_extract( stack, [:any] ) - stack << args[0] stack << { type: :string, - value: args[0][:type].to_s } + value: "\"#{args[0][:type]}\"" } [stack, dictionary] end