{"id":13878559,"url":"https://github.com/ticky/ruby-emoji-regex","last_synced_at":"2025-05-16T19:08:03.772Z","repository":{"id":22448586,"uuid":"96277591","full_name":"ticky/ruby-emoji-regex","owner":"ticky","description":"💎 A set of Ruby regular expressions for matching Unicode Emoji symbols.","archived":false,"fork":false,"pushed_at":"2025-04-14T18:38:09.000Z","size":173,"stargazers_count":40,"open_issues_count":7,"forks_count":3,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-05-11T13:03:50.201Z","etag":null,"topics":["emoji","regex","regexp","regular-expression","unicode"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ticky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-05T04:45:51.000Z","updated_at":"2025-03-10T12:11:22.000Z","dependencies_parsed_at":"2024-04-23T14:29:44.027Z","dependency_job_id":"dd03bbb6-f491-464a-a12b-03761584d578","html_url":"https://github.com/ticky/ruby-emoji-regex","commit_stats":{"total_commits":123,"total_committers":5,"mean_commits":24.6,"dds":"0.34959349593495936","last_synced_commit":"e5dbd283a333bfac28dc8762b8927baa27031d75"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticky%2Fruby-emoji-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticky%2Fruby-emoji-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticky%2Fruby-emoji-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticky%2Fruby-emoji-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ticky","download_url":"https://codeload.github.com/ticky/ruby-emoji-regex/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254557451,"owners_count":22091126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","regex","regexp","regular-expression","unicode"],"created_at":"2024-08-06T08:01:53.094Z","updated_at":"2025-05-16T19:08:03.748Z","avatar_url":"https://github.com/ticky.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Ruby Emoji Regex 💎\n\n[![Gem Version](https://badge.fury.io/rb/emoji_regex.svg)](https://rubygems.org/gems/emoji_regex) [![Node \u0026 Ruby CI](https://github.com/ticky/ruby-emoji-regex/workflows/Node%20\u0026%20Ruby%20CI/badge.svg)](https://github.com/ticky/ruby-emoji-regex/actions?query=workflow%3A%22Node+%26+Ruby+CI%22)\n\nA Ruby regular expression for matching Unicode Emoji symbols.\n\n## Background\n\nThis is based upon the fantastic work from [Mathias Bynens'](https://mathiasbynens.be/) [`emoji-test-regex-pattern`](https://github.com/mathiasbynens/emoji-test-regex-pattern) package. `emoji-test-regex-pattern` is cleverly assembled based upon data from the Unicode Consortium.\n\nThe regular expressions provided herein are derived from that package.\n\n## Installation\n\n```shell\ngem install emoji_regex\n```\n\n## Usage\n\n`emoji_regex` provides the `EmojiRegex::Regex` regular expression, which matches emoji, as defined by [the Unicode standard's `emoji-test` data file](https://unicode.org/Public/emoji/14.0/emoji-test.txt).\n\n### Example\n\n```ruby\nrequire 'emoji_regex'\n\ntext = \u003c\u003cTEXT\n\\u{231A}: ⌚ default Emoji presentation character (Emoji_Presentation)\n\\u{2194}\\u{FE0F}: ↔️ default text presentation character with Emoji variation selector\n\\u{1F469}: 👩 Emoji modifier base (Emoji_Modifier_Base)\n\\u{1F469}\\u{1F3FF}: 👩🏿 Emoji modifier base followed by a modifier\nTEXT\n\ntext.scan EmojiRegex::Regex do |emoji|\n  puts \"Matched sequence #{emoji} — code points: #{emoji.length}\"\nend\n\n```\n\nConsole output:\n\n```text\nMatched sequence ⌚ — code points: 1\nMatched sequence ⌚ — code points: 1\nMatched sequence ↔️ — code points: 2\nMatched sequence ↔️ — code points: 2\nMatched sequence 👩 — code points: 1\nMatched sequence 👩 — code points: 1\nMatched sequence 👩🏿 — code points: 2\nMatched sequence 👩🏿 — code points: 2\n```\n\n_**Note**: The above code and output are verified as part of the spec suite._\n\n## Development\n\n### Requirements\n\n* Ruby\n* [Node](https://nodejs.org) (v6 or newer)\n* [Yarn](https://yarnpkg.com)\n\n### Initial setup\n\nTo install all the Ruby and Javascript dependencies, you can run:\n\n```bash\nbin/setup\n```\n\nTo update the Ruby source files based on the `emoji-regex` library:\n\n```bash\nbundle exec rake regenerate\n```\n\n### Specs\n\nA spec suite is provided, which can be run as:\n\n```bash\nbundle exec rake spec\n```\n\n### Versioning Policy\n\nSince [Version 14.0.0](https://github.com/ticky/ruby-emoji-regex/releases/tag/v14.0.0), Ruby Emoji Regex's versions have followed that of the Unicode standard itself.\n\nRuby Emoji Regex is based upon the [`emoji-test-regex-pattern`](https://github.com/mathiasbynens/emoji-test-regex-pattern) package.\n\n- If a patch revision of `emoji-test-regex-pattern` is released, and if its changes affect the Ruby port meaningfully, a version will be released with the same or greater patch version.\n- If a change is required to correct a bug specific to the Ruby port, the patch number will be incremented.\n\n### Ruby Compatibility Policy\n\nWhile Ruby Emoji Regex uses features which should function on any Ruby version, it is explicitly intended to work on [MRI Ruby versions which are currently within normal maintenance according to the Ruby team](https://www.ruby-lang.org/en/downloads/branches/).\n\n### Creating a release\n\n1. Update the version in [emoji_regex.gemspec](emoji_regex.gemspec)\n1. `rake release`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticky%2Fruby-emoji-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticky%2Fruby-emoji-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticky%2Fruby-emoji-regex/lists"}