Download tools/server/webui/src/lib/constants/table-html-restorer.ts from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/constants/table-html-restorer.ts
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/tools/server/webui/src/lib/constants/table-html-restorer.ts
-
curl -L -o table-html-restorer.ts https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/constants/table-html-restorer.ts
666 Bytes
| /** | |
| * Matches <br>, <br/>, <br /> tags (case-insensitive). | |
| * Used to detect line breaks in table cell text content. | |
| */ | |
| export const BR_PATTERN = /<br\s*\/?\s*>/gi; | |
| /** | |
| * Matches a complete <ul>...</ul> block. | |
| * Captures the inner content (group 1) for further <li> extraction. | |
| * Case-insensitive, allows multiline content. | |
| */ | |
| export const LIST_PATTERN = /^<ul>([\s\S]*)<\/ul>$/i; | |
| /** | |
| * Matches individual <li>...</li> elements within a list. | |
| * Captures the inner content (group 1) of each list item. | |
| * Non-greedy to handle multiple consecutive items. | |
| * Case-insensitive, allows multiline content. | |
| */ | |
| export const LI_PATTERN = /<li>([\s\S]*?)<\/li>/gi; | |