PHP 8.2.30
Preview: index.ts Size: 497 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@emotion/is-prop-valid/src/index.ts

import memoize from '@emotion/memoize'

declare const codegen: { require: (path: string) => any }

// eslint-disable-next-line no-undef
const reactPropsRegex: RegExp = codegen.require('./props')

// https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
const isPropValid = /* #__PURE__ */ memoize(
  prop =>
    reactPropsRegex.test(prop) ||
    (prop.charCodeAt(0) === 111 /* o */ &&
      prop.charCodeAt(1) === 110 /* n */ &&
      prop.charCodeAt(2) < 91) /* Z+1 */
)

export default isPropValid

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
497 B lrw-r--r-- 2026-02-28 00:28:10
Edit Download
10.82 KB lrw-r--r-- 2026-02-28 00:27:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).