(obj)
| 217 | * @return {string} |
| 218 | */ |
| 219 | export function stripLineEndings (obj) { |
| 220 | if (!obj) { return obj } |
| 221 | |
| 222 | return obj.replace(/(\r\n|\n|\r)/gm, '') |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Routes the resolved file. Serves static files with content negotiation. |