Socket
Socket
Sign inDemoInstall

@gitmoji/gitmoji-regex

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @gitmoji/gitmoji-regex

a gitmoji regex to for both gitmoji code and gitmoji unicode


Version published
Weekly downloads
26K
decreased by-24.48%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@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

FAQs

Last updated on 11 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc