packages/extension-map/doc/webpacks/shexmap-webapp.js
// Expands the prefixed name to a full IRI (also when it occurs as a literal's type)
Expands the prefixed name to a full IRI (also when it occurs as a literal's type)
Expands the prefixed name to a full IRI ( also when it occurs as a literal ' s type )
function expandPrefixedName (prefixedName, prefixes) {
    const match = /(?:^|"\^\^)([^:\/#"'\^_]*):[^\/]*$/.exec(prefixedName);
    let prefix, base, index;
    if (match)
      prefix = match[1], base = prefixes[prefix], index = match.index;
    if (base === undefined)
      return prefixedName;
    return index === 0 ? base + prefixedName.substr(prefix.length + 1)
                       : prefixedName.substr(0, index + 3) +
                         base + prefixedName.substr(index + prefix.length + 4);
  }
function expandPrefixedName ( prefixedName , prefixes ) { const match = / (?:^|"\^\^)([^:\/#"'\^_]*):[^\/]*$ / . exec ( prefixedName ) ; let prefix , base , index ; if ( match ) prefix = match [ 1 ] , base = prefixes [ prefix ] , index = match . index ; if ( base === undefined ) return prefixedName ; return index === 0 ? base + prefixedName . substr ( prefix . length + 1 ) : prefixedName . substr ( 0 , index + 3 ) + base + prefixedName . substr ( index + prefix . length + 4 ) ; }
Expands the prefixed name to a full IRI (also when it occurs as a literal's type)
Expands the prefixed name to a full IRI ( also when it occurs as a literal ' s type )
// The match index is non-zero when expanding a literal's type