UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 179 B
function n(t,e){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;const[i,r]=t.split("*");return r?e.startsWith(i)&&e.endsWith(r)&&r.split(".").length>2:!1}export{n as hasSubHost};