Skip to content

Users can't post colons  #4

Description

@LarsFin
def create_hash()
    hash()['method'], @hash['location'] = text_arr.shift().split(" ")
    text_arr().each do |item|
      **key, value = item.split(":")**
      if key && value
        hash()[key] = value.strip()
      else
        hash()["body"] = key
      end
    end
  end 

Splitting post

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions