MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isWordDocument

Function isWordDocument

static/js/markdown.js:671–673  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

669
670 //判断粘贴的内容是否来自office
671 function isWordDocument(str) {
672 return /(class="?Mso|style="[^"]*\bmso\-|w:WordDocument|<(v|o):|lang=)/ig.test(str) || /\"urn:schemas-microsoft-com:office:office/ig.test(str);
673 }
674
675 //excel表格处理
676 function pasteClipboardHtml(html) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected