UNPKG

@wordpress/components

Version:
8 lines (7 loc) 719 B
{ "version": 3, "sources": ["../../src/navigation/utils.tsx"], "sourcesContent": ["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n// @see packages/block-editor/src/components/inserter/search-items.js\nexport const normalizeInput = input => removeAccents(input).replace(/^\\//, '').toLowerCase();\nexport const normalizedSearch = (title, search) => -1 !== normalizeInput(title).indexOf(normalizeInput(search));"], "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,4BAA0B;AAGnB,IAAM,iBAAiB,eAAS,sBAAAA,SAAc,KAAK,EAAE,QAAQ,OAAO,EAAE,EAAE,YAAY;AACpF,IAAM,mBAAmB,CAAC,OAAO,WAAW,OAAO,eAAe,KAAK,EAAE,QAAQ,eAAe,MAAM,CAAC;", "names": ["removeAccents"] }