github.com/outbrain/consul@v1.4.5/ui-v2/app/utils/routing/wildcard.js (about)

     1  import { get } from '@ember/object';
     2  export default function(routes) {
     3    return function(name) {
     4      let wildcard = false;
     5      try {
     6        wildcard = get(routes, name)._options.path.indexOf('*') !== -1;
     7      } catch (e) {
     8        // passthrough
     9      }
    10      return wildcard;
    11    };
    12  }