* Checks whether given type is file or not * @param {'file'|'link'} type * @returns {Boolean}
(type)
| 227 | * @returns {Boolean} |
| 228 | */ |
| 229 | isFile(type) { |
| 230 | return /^(file|link)$/.test(type); |
| 231 | }, |
| 232 | /** |
| 233 | * Replace matching part of url to alias name by which storage is added |
| 234 | * @param {String} url |
nothing calls this directly
no outgoing calls
no test coverage detected