- including pagination of queue results (30 results per page currently) - show numbering on paginated results - allow user navigation to each result page
8 lines
221 B
TypeScript
8 lines
221 B
TypeScript
/**
|
|
* Escape string to use as regex
|
|
* From https://github.com/tc39/proposal-regex-escaping/blob/main/polyfill.js#L3
|
|
*/
|
|
export function regexEscape(s: any) {
|
|
return String(s).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
}
|