module Lookbook::Utils
def parse_position_prefix(str)
def parse_position_prefix(str) pos = str.match(POSITION_PREFIX_REGEX) if pos.nil? [10000, str] else cleaned_str = str.gsub(POSITION_PREFIX_REGEX, "") [pos[1].to_i, cleaned_str] end end
def parse_position_prefix(str) pos = str.match(POSITION_PREFIX_REGEX) if pos.nil? [10000, str] else cleaned_str = str.gsub(POSITION_PREFIX_REGEX, "") [pos[1].to_i, cleaned_str] end end