Title
m

merott

09/20/2017, 8:19 AM
Has there been new naming rules introduced for functions? I’m forced to change my function names 😞 … It doesn’t say what the rules are, but after lots of trial and error, it seems to me that only
[a-zA-Z-_]
are allowed?
n

nilan

09/20/2017, 8:20 AM
yes! the rules are only enforced when updating an existing function or creating a new one, so old functions are not affected if you don't touch them
your regex seems about right 😛
m

merott

09/20/2017, 8:21 AM
It also affects existing functions when working with graphcool-cli. I know, it’s Beta, guess I’m moving a little too fast 😄
Is there a security reason behind the changes?
n

nilan

09/20/2017, 8:26 AM
no, but controlling names is always a good idea 😉 so far, function names have been completely free form.
m

merott

09/20/2017, 8:27 AM
I really wanted to have a separator other than
-
and
_
in my names. The two aren’t distinctive enough for me 😄, something like
+
would work well 😛
Yep, they were indeed freeform, which is why I’ve been spoiled.
n

nilan

09/20/2017, 8:28 AM
think of the function names as file names, would you then need
+
? 🤔
m

merott

09/20/2017, 8:28 AM
I do have
+
in file names 😂 (well, folder names)
😄 1
Angular conventions 🙂
n

nilan

09/20/2017, 8:42 AM
let me see what I can do 🙂
m

merott

09/20/2017, 9:02 AM
Thanks, for now I’ve gone with
__
as my new special separator 😄