Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Which regular expression flags does the current environment support?

License

NotificationsYou must be signed in to change notification settings

inspect-js/available-regexp-flags

github actionscoverageLicenseDownloads

npm badge

Which regular expression flags does the current environment support?

Example

varflags=require('available-regexp-flags');varproperties=require('available-regexp-flags/properties');flags.forEach((flag)=>{assert.doesNotThrow(()=>{constr=newRegExp('foo',flag);varpropertyName=properties[flag];assert.equal(r[propertyName],true);});});

Tests

Simply clone the repo,npm install, and runnpm test

About

Which regular expression flags does the current environment support?

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp