Socket
Socket
Sign inDemoInstall

js-regex-pl

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    js-regex-pl

JavaScript RegExp doesn't work with Unicode characters out of the box. This small package fixes this issue. This is \p{L} equalent extracted from XRegExp.


Version published
Weekly downloads
5.9K
decreased by-24.23%
Maintainers
1
Install size
9.87 kB
Created
Weekly downloads
 

Readme

Source

js-regex-pl

JavaScript RegExp doesn't work with Unicode characters out of the box. This small package fixes this issue.

This is \p{L} equalent extracted from XRegExp

XRegExp is a great library but I wanted something much smaller for my needs.

Installation

npm i js-regex-pl

Usage

import pL from 'js-regex-pl';

new RegExp(`^[${pL}]+$`).test('日本語')

Keywords

FAQs

Last updated on 08 Jul 2020

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