UNPKG

@mikezimm/npmfunctions

Version:
12 lines (11 loc) 622 B
import { INullOrStringArray } from './constants'; /** * 2022-01-19 * getStringArrayWithHashNumbers was originally built for Help Panel in Drilldown webpart. * The basic purpose is to be able to just type text and use #xx and have it create link to github repo. * If you pass in a string, it will break it into an array of strings split by any #23 like github issues references. * * @param testString - string to parse * @param matches - strings to parse the string by (like: ['#2','#23','#122']) */ export declare function splitByHashNumbers(testString: string, matches: INullOrStringArray): string[];