(contentType: string)
| 260 | } |
| 261 | |
| 262 | function isSupportedContentType(contentType: string): boolean { |
| 263 | return /^(text\/|application\/(json|[^;\s/]+\+json|xhtml\+xml|xml|rss\+xml|atom\+xml)\b)/i.test( |
| 264 | contentType, |
| 265 | ) |
| 266 | } |
| 267 | |
| 268 | function extractTextByContentType( |
| 269 | contentType: string, |