module FFaker::String
def generate_range(tokens)
def generate_range(tokens) result = [] while tokens.any? token = tokens.shift if token == DASH && tokens.first && result.last result += [*result.pop..tokens.shift] elsif token == BACKSLASH result << special(tokens.shift) else result << token end end result end