lib/qlang/parser/vector_parser.rb in qlang-0.0.27182000 vs lib/qlang/parser/vector_parser.rb in qlang-0.0.27182100

- old
+ new

@@ -1,12 +1,12 @@ module Qlang module Parser module VectorParser include Base - def execute(lexed_string) - lexed_string.rms!(/ *\( */, / *\) */) - elements = lexed_string.split_by_sp - VectorApi.execute(elements) + def execute(els) + VectorApi.execute( + els.first.rm(/\A +/).rm(/ +\z/).split_by_sp + ) end module_function :execute end end end