MCPcopy Index your code
hub / github.com/dataease/SQLBot / canParse

Method canParse

frontend/public/swagger-ui-bundle.js:52796–52809  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

52794 ...s,
52795 })
52796 }
52797 async canParse(s) {
52798 const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
52799 i = this.mediaTypes.includes(s.mediaType)
52800 if (!o) return !1
52801 if (i) return !0
52802 if (!i)
52803 try {
52804 const o = s.toString()
52805 return (fn.load(o), this.detectionRegExp.test(o))
52806 } catch (s) {
52807 return !1
52808 }
52809 return !1
52810 }
52811 async parse(s) {
52812 if (this.sourceMap)

Callers

nothing calls this directly

Calls 3

includesMethod · 0.45
toStringMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected