Explorar o código

+jwtGQLAnon for anon, query recursive walker for object id and regexp

Ivan Asmer %!s(int64=5) %!d(string=hai) anos
pai
achega
19ccb54628
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      expand.js

+ 1 - 1
expand.js

@@ -80,7 +80,7 @@ function mmExpandSchema(gqlSchema){
                                 if (val && typeof val === 'string' && val.startsWith('/') && val.endsWith('/')){
                                     try {
                                         console.log('regexp', val)
-                                        return new Regexp(val.slice(1,-1))
+                                        return new Regexp(val)
                                     }
                                     catch (e){
                                         return val