Open filt3rek opened 4 years ago
Hej !
I get this compilte-time error "Configuration entry should be a function", just because I've a simple field named "documents", so it takes the "do" as an API function. I solved this by adding that into the ifstatement : || ( f.name.substr( 2, 1 ) != null && f.name.substr( 2, 1 ) == f.name.substr( 2, 1 ).toLowerCase() ) here : https://github.com/HaxeFoundation/hx3compat/blob/91edf63bfd82d0d110a51c96028905b962c7968e/std/haxe/web/Dispatch.hx#L397
if
|| ( f.name.substr( 2, 1 ) != null && f.name.substr( 2, 1 ) == f.name.substr( 2, 1 ).toLowerCase() )
Hej !
I get this compilte-time error "Configuration entry should be a function", just because I've a simple field named "documents", so it takes the "do" as an API function. I solved this by adding that into the
if
statement :|| ( f.name.substr( 2, 1 ) != null && f.name.substr( 2, 1 ) == f.name.substr( 2, 1 ).toLowerCase() )
here : https://github.com/HaxeFoundation/hx3compat/blob/91edf63bfd82d0d110a51c96028905b962c7968e/std/haxe/web/Dispatch.hx#L397