JSPM

@gitmoji/gitmoji-regex

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32430
  • Score
    100M100P100Q166406F
  • License ISC

a gitmoji regex to for both gitmoji code and gitmoji unicode

Package Exports

  • @gitmoji/gitmoji-regex
  • @gitmoji/gitmoji-regex/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gitmoji/gitmoji-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@gitmoji/gitmoji-regex

NPM version NPM downloads

a gitmoji regex to for both gitmoji code and gitmoji unicode

this package is used in both @gitmoji/parser-opts and commitlint-plugin-gitmoji

emojiRegex

gitmojiCodeRegex

gitmojiUnicodeRegex

Header regex pattern test here : Regex101

module.exports = {
  headerPattern:
    /^(?::\w*:|(?:\ud83c[\udf00-\udfff])|(?:\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55])\s(?<type>\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*(?:(?!\s).))(?:\s\(?(?<ticket>#\d*)\)?)?$/,
  headerCorrespondence: ['type', 'scope', 'subject', 'ticket'],
};

License

MIT ® Arvin Xu