MCPcopy Index your code
hub / github.com/simstudioai/sim / detectWps

Function detectWps

apps/sim/lib/pptx-renderer/model/presentation.ts:55–61  ·  view source on GitHub ↗

* Detect WPS (Kingsoft Office / WPS Office) by checking for known markers * in the presentation XML string.

(presentationXml: string)

Source from the content-addressed store, hash-verified

53 * in the presentation XML string.
54 */
55function detectWps(presentationXml: string): boolean {
56 return (
57 /\bKingsoft\b/i.test(presentationXml) ||
58 /\bWPS Office\b/i.test(presentationXml) ||
59 /xmlns:[\w.-]*kso[\w.-]*=/i.test(presentationXml)
60 )
61}
62
63/**
64 * Find a rels entry by type substring match.

Callers 1

buildPresentationFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected