2.0.0 • Published 5 years ago

astral-regex v2.0.0

Weekly downloads
16,704,117
License
MIT
Repository
github
Last release
5 years ago

astral-regex Build Status

Regular expression for matching astral symbols

Install

$ npm install astral-regex

Usage

const astralRegex = require('astral-regex');

astralRegex({exact: true}).test('🦄');
//=> true

'foo 🦄 💩 bar'.match(astralRegex());
//=> ['🦄', '💩']

API

astralRegex(options)

Returns a RegExp for matching astral symbols.

options

Type: Object

exact

Type: boolean Default: false (Matches any astral symbols in a string)

Only match an exact string. Useful with RegExp#test() to check if a string is a astral symbol.

License

MIT © Kevin Mårtensson

@huyhpham/rn-linearchetype-libraryeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imagepipihomereact-stream-rendererspecify-importsbabel-specify-imports@oneplanetcrowd/developers@almeidaa/msreact-native-template-rfbaseairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_mod@jttechnic/interpretermysql-formatreact-native-printer-brothersrn-pdf-reader-offline@newhorizon-tech/dd-npm-package-templatereact-native-shekhar-bridge-testcogoportutilsuncoded-connect@reversodev/oceanic-fleetwilscanner@oiti/documentoscopy-react-native@respondea/cordova-plugin-v-inappbrowserquoc-testreact-native-slider-kfplginexpand-react-bridgeopea-bootstraapluminos-ui-core@everything-registry/sub-chunk-1173jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablereact-native-jawwy_sampleec0lint-style-config-postcsseditorjs-alerticonseditorjs_forkededitor.js-custom-multiple-selectedelvydskcoreneweslint-config-k3cman-angulareslint-plugin-templewallet-testoracle-zkappowt-client-javascriptp147-tablep148-tablenove-repositorynpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2numhandlercampus-carosellopayutestingplugn-deviceopea-bootstrapnuxtjs-argon@rps-engine/corepolen-web-components-reactpatternxmoonwalkerswap-default-token-listsmpesa-cookiempesa-cookie-jarnative-google-loginnative-modal-damage-vehiclenative-kakao-loginpnm-yph-react-native-custom-componentsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwyreact-native-experts-sdktest_lib_module_aargitbook-plugin-toc-xiayureact-native-create-video-thumbnailhcm-jshardhat-teaplughardhat-teaxyzgenz-native-elementsgrids-over-polygongriffin-ui-librarygoogle-remakeeslint-plugin-dd-eslint-ruleses-react-bridgeex-ikon-components-library
2.0.0

5 years ago

1.0.0

7 years ago