import { IFilterParser } from '../interfaces/IFilterParser';

export function parseNodeFiltersFactory(): IFilterParser {
  return (url: string) => {
    const nodeFiltersMatch = url
      .replace(/{.*?\/.*?\/.*?}/, ``)
      .match(/\[([\s\S]*)\]/);

    if (!nodeFiltersMatch) {
      return [];
    }

    return nodeFiltersMatch[1].split(`,`)
      .map((x) => x.trim())
      .filter((x) => x.length);
    };
}

import { IFilterParser } from '../interfaces/IFilterParser';

export function parseNodeFiltersFactory(): IFilterParser {
  return (url: string) => {
    const nodeFiltersMatch = url
      .replace(/{.*?\/.*?\/.*?}/, '')
      .match(/\[([\s\S]*)\]/);

    if (!nodeFiltersMatch) {
      return [];
    }

    return nodeFiltersMatch[1].split(`,`)
      .map((x) => x.trim())
      .filter((x) => x.length);
    };
}

--- 
+++ 
@@ -3,7 +3,7 @@
 export function parseNodeFiltersFactory(): IFilterParser {
   return (url: string) => {
     const nodeFiltersMatch = url
-      .replace(/{.*?\/.*?\/.*?}/, '')
+      .replace(/{.*?\/.*?\/.*?}/, ``)
       .match(/\[([\s\S]*)\]/);
 
     if (!nodeFiltersMatch) {
Use backticks because coding style
