Remove pin<xyz> as var name pattern

This commit is contained in:
Connor Rigby 2017-12-12 17:02:05 -08:00
parent 82a6f8e1fc
commit 7c541c103b

View file

@ -54,8 +54,6 @@ defmodule Farmbot.CeleryScript do
{:error, "variables may not contain special characters."}
match?(<<"__", _ :: binary>>, name) ->
{:error, "variables may not replace internal names."}
match?(<<"pin", _ :: binary>>, name) ->
{:error, "variables may not contain pattern: pin<number>."}
name in ["x", "y", "z"] ->
{:error, "variables may not be axis names."}
true -> {:ok, name}