sanitizePatternName(plName) {
    if (urlHandler.getFileName(plName)) {
      return plName;
    } else if (
      !document.querySelector(`[data-patternpartial="${plName}"]`) &&
      plName
    ) {
      return plName.replace(/[-][0-9][0-9]/g, '');
    } else {
      return plName;
    }
  }
/**
   * returns the current patternName after removing any numbers / dashes
   * Workaround to PL Node not always having clean viewall / pattern links
   */
returns the current patternName after removing any numbers / dashes
Workaround to PL Node not always having clean viewall / pattern links
returns the current patternName after removing any numbers / dashes Workaround to PL Node not always having clean viewall / pattern links
sanitizePatternName(plName) {
    if (urlHandler.getFileName(plName)) {
      return plName;
    } else if (
      !document.querySelector(`[data-patternpartial="${plName}"]`) &&
      plName
    ) {
      return plName.replace(/[-][0-9][0-9]/g, '');
    } else {
      return plName;
    }
  }
sanitizePatternName ( plName ) { if ( urlHandler . getFileName ( plName ) ) { return plName ; } else if ( ! document . querySelector ( ` ${ plName } ` ) && plName ) { return plName . replace ( / [-][0-9][0-9] / g , '' ) ; } else { return plName ; } }
returns the current patternName after removing any numbers / dashes
 Workaround to PL Node not always having clean viewall / pattern links
returns the current patternName after removing any numbers / dashes Workaround to PL Node not always having clean viewall / pattern links