(s: string)
| 38 | const RATING_LABEL_RE = /rating.*?[:\-][\s*]*(\w+)/gi; |
| 39 | |
| 40 | function titleCase(s: string): string { |
| 41 | return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase(); |
| 42 | } |
| 43 | |
| 44 | function stripEdges(word: string): string { |
| 45 | return word.replace(/^[*:.,]+|[*:.,]+$/g, ""); |