|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
686 bytes
|
| Line | |
|---|
| 1 | # Char Regex [](https://travis-ci.com/Richienb/char-regex)
|
|---|
| 2 |
|
|---|
| 3 | A regex to match any full character, considering weird character ranges. Tested on every single emoji and unicode character. Based on the Lodash implementation.
|
|---|
| 4 |
|
|---|
| 5 | [](https://npmjs.com/package/char-regex)
|
|---|
| 6 |
|
|---|
| 7 | ## Install
|
|---|
| 8 |
|
|---|
| 9 | ```sh
|
|---|
| 10 | npm install char-regex
|
|---|
| 11 | ```
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 |
|
|---|
| 15 | ```js
|
|---|
| 16 | const charRegex = require("char-regex");
|
|---|
| 17 |
|
|---|
| 18 | "❤️👊🏽".match(/./);
|
|---|
| 19 | //=> ["", "", "", "", "", "", ""]
|
|---|
| 20 |
|
|---|
| 21 | "❤️👊🏽".match(charRegex());
|
|---|
| 22 | //=> ["❤️", "👊🏽"]
|
|---|
| 23 | ```
|
|---|
| 24 |
|
|---|
| 25 | ## API
|
|---|
| 26 |
|
|---|
| 27 | ### charRegex()
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.