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

Function doEstimateTypeByFileExtension

PluginLoader.js:105–117  ·  view source on GitHub ↗
(extension)

Source from the content-addressed store, hash-verified

103
104
105 function doEstimateTypeByFileExtension(extension) {
106 var matchingPluginData;
107
108 pluginRegistry.some(function(pluginData) {
109 if (pluginData.supportsFileExtension(extension)) {
110 matchingPluginData = pluginData;
111 return true;
112 }
113 return false;
114 });
115
116 return matchingPluginData;
117 }
118
119
120 function estimateTypeByFileExtension(extension) {

Calls

no outgoing calls

Tested by

no test coverage detected