UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

12 lines 661 B
/** * 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 type INullOrStringArray = null | string[]; export declare function splitByHashNumbers(testString: string, matches: INullOrStringArray): string[]; //# sourceMappingURL=splitHash.d.ts.map