(documentUrl)
| 129 | |
| 130 | |
| 131 | function estimateTypeByFileExtensionFromPath(documentUrl) { |
| 132 | // See to get any path from the url and grep what could be a file extension |
| 133 | var documentPath = documentUrl.split('?')[0], |
| 134 | extension = documentPath.split('.').pop(), |
| 135 | matchingPluginData = doEstimateTypeByFileExtension(extension) |
| 136 | |
| 137 | if (matchingPluginData) { |
| 138 | console.log('Found plugin by file extension from path: ' + extension); |
| 139 | } |
| 140 | |
| 141 | return matchingPluginData; |
| 142 | } |
| 143 | |
| 144 | |
| 145 | function parseSearchParameters(location) { |
no test coverage detected