UNPKG

react-native-shiki-engine

Version:

Shiki syntax highlighting for React Native. Zero bridge overhead with native Oniguruma regex engine.

14 lines (13 loc) 313 B
"use strict"; export function convertToOnigMatch(result) { if (!result) return null; return { index: result.index, captureIndices: result.captureIndices.map(capture => ({ start: capture.start, end: capture.end, length: capture.length })) }; } //# sourceMappingURL=utils.js.map