MCPcopy Index your code
hub / github.com/webodf/ViewerJS / estimateTypeByFileExtensionFromPath

Function estimateTypeByFileExtensionFromPath

PluginLoader.js:131–142  ·  view source on GitHub ↗
(documentUrl)

Source from the content-addressed store, hash-verified

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) {

Callers 1

PluginLoader.jsFile · 0.85

Calls 1

Tested by

no test coverage detected