8.9.103 • Published 10 months ago

@diotoborg/soluta-in v8.9.103

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

RegExp.prototype.flags Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

An ES6 spec-compliant RegExp.prototype.flags shim. Invoke its "shim" method to shim RegExp.prototype.flags if it is unavailable. Note: RegExp#flags requires a true ES5 environment - specifically, one with ES5 getters.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.

Most common usage:

var flags = require('@diotoborg/soluta-in');

assert(flags(/a/) === '');
assert(flags(new RegExp('a') === '');
assert(flags(/a/mig) === 'gim');
assert(flags(new RegExp('a', 'mig')) === 'gim');

if (!RegExp.prototype.flags) {
	flags.shim();
}

assert(flags(/a/) === /a/.flags);
assert(flags(new RegExp('a') === new RegExp('a').flags);
assert(flags(/a/mig) === /a/mig.flags);
assert(flags(new RegExp('a', 'mig')) === new RegExp('a', 'mig').flags);

Tests

Simply clone the repo, npm install, and run npm test

ES3appregexmobileObject.valuesec2ES2015threekinesisdotenvdataviewdescriptorspushesruleszerotsbindloadingrdsoffsetregularrm -rfqstypescriptcopyECMAScript 7mapreversedrmdirpoint-freebuffersterminalarraybufferfast-copytranspileUint8ClampedArraydebuggerlastvaluesprivateremovemkdirptypesunicodejoicssieredactmomentprototypetddimportWeakMaprestownupTypedArrayweaksethashregular expressionsvalidconcatsyntaxerroremiteventsmkdirRxhardlinksjsbannerECMAScript 2023stringifyString.prototype.trimdiffviewURLSearchParamsresolveenvironmentsymlinksinstrumentationescapeflatreact poseespreegetintrinsicselfgenericsSystem.globalrequestclassnamesRegExp#flagsES2023serializerreadsinatraclientutil.inspectassertcompilertoReversedwaapiArraytypedarrayelasticacheES2020typeofMicrosofts3swftoolkitcommand-linees8shellwindowacorngroupByiamscheme-validationbundlerhtmlwarningstylingmatchwebi18npackagewafdatesetcachees2018es5serializationkeysReflect.getPrototypeOfrm -frpromisecreateuser-streamsbytefantasy-landchrometoStringTagreact-hook-formregexpsubprocessSetdeepcopyjasmineshamperformantkoreanES2016ES6widthtypedclass-validatoroptimizercode points.gitignoreObservableserializewritableatomflagsschemafull-widthquotelockfilepipeeffect-tsjestsource mapspinnersmanipulationglobalsassigndeterministicistanbuldynamodbreadablestreamspringendersimpledbconfiguninstallchinesejson-schema-validatorfile systemansiloggerfnmatchcallbindxhrphoneObject.keysinternalESnextsetPrototypeOfhttpspyyamlnodejsES7Streamfast-deep-copytypeerrorreadablehasiteratorwhatwgCSSStyleDeclarationcall-boundStyleSheetguidcirculares-shim APIexpressiontrimStartjshintformattingsomemochaflatMapmapreducegetoptdescriptorastreact-hooksES2021_.extendefficientzxautoscalingargvapollofastlook-upreducerArray.prototype.flattenwalkMapstringifiernpminstallergroupkeycloudtrailenumerablevariablesPromisefast-cloneprivate dataclassnameerrorCSSlintArrayBuffer.prototype.sliceiteratestylearrayses2015executecallboundsettingsasterisksspawncolumn[[Prototype]]package managerletECMAScript 3curlkarmacompareprettyreverserequirespecprocessshrinkwraptrimLeftIteratorfindupmakeTypeBoxWeakSetpositiveramdaxtermprogressstarternpmignorecharacterscharacterperformancetelephonepureparsertapvisualpropertiesenvjQuerywgetchaiglacierttystreambabelObservablesworkspace:*typesafebinaryvalidateutilitieseveryhasOwnPropertysameValueZeroreduxdompreprocessorreuseArray.prototype.findLastrssassertsstringES2018beanstalkcallbrowserslistform-validationpackagescommandfunctionsstoragegatewaytakepropbyteOffsetloggingcurriedObjectamazongetOwnPropertyDescriptorURLhigher-orderlookpostcsseslintconfignegativecommandertestingfeedasciibrowserlistendpointes-shimsjsonschemaisConcatSpreadablevpcInt16Arrayfind-upmatchAllcomputed-typessharedrecursiveajveast-asian-widthESbabel-coredirtrimhas-ownfastcopyimmerfast-deep-clonelocalfpquerystringzodsesmruincludesrangeerrorpropertyidentifiersnumberelbdeleteobjreact-testing-librarycolumnsfromnodearktypefindLastfullwidthtostringtaggitignoresqsequaldataViewpackage.jsonlengthRegExp.prototype.flagsfolderflagES8filterlanguagefunction.lengthconfigurabletraversesearchrestfulcensorargsRxJScall-bindextendpopmotionreduceAsyncIteratorredux-toolkitstylesminimalsideloadbalancinggetterreworkconcatMapArray.prototype.containsmoveString.prototype.matchAlles2016apiestreemodulenegative zerotypedarraysArray.prototype.findLastIndexfastclone0Uint32Arrayjson-schema-validationexecJSON-SchemaweakmapbinariessetImmediatefigletObject.getPrototypeOfemrinspectajaxsorttextprotovalidatorschemeharmonyintoArraywalkingUint8Arraymake dir__proto__tslibES2022flattenmkdirsrfc4122fixed-widthurlstyled-componentsdescriptionmetadataidlejsx
8.9.103

10 months ago

8.9.102

10 months ago

8.9.101

10 months ago

8.9.100

10 months ago

8.9.99

10 months ago

8.9.98

10 months ago

8.9.97

10 months ago

7.9.97

10 months ago

7.9.96

10 months ago

7.9.95

10 months ago

7.9.94

10 months ago

7.9.93

10 months ago

7.9.92

10 months ago

7.9.91

10 months ago

7.9.90

11 months ago

7.8.90

11 months ago

7.7.90

11 months ago

7.7.89

11 months ago

7.7.88

11 months ago

7.7.87

11 months ago

6.7.87

11 months ago

6.7.86

11 months ago

6.7.85

11 months ago

6.7.84

11 months ago

6.7.83

11 months ago

6.7.82

11 months ago

6.7.81

11 months ago

6.7.80

11 months ago

6.7.79

11 months ago

6.7.78

11 months ago

6.7.77

11 months ago

6.6.77

11 months ago

6.6.76

11 months ago

6.6.75

11 months ago

5.6.75

11 months ago

5.5.75

11 months ago

5.5.74

11 months ago

5.5.73

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.3.72

11 months ago

5.3.71

11 months ago

5.3.70

11 months ago

5.3.69

11 months ago

5.3.68

12 months ago

5.3.67

12 months ago

5.3.66

12 months ago

5.2.66

12 months ago

5.2.65

12 months ago

4.2.65

12 months ago

4.2.64

12 months ago

4.2.63

12 months ago

4.2.62

12 months ago

4.2.61

12 months ago

4.2.60

12 months ago

4.2.59

12 months ago

4.2.58

12 months ago

4.2.57

12 months ago

4.2.56

12 months ago

4.2.55

12 months ago

4.2.54

12 months ago

4.2.53

12 months ago

4.2.52

12 months ago

4.2.51

12 months ago

4.2.50

1 year ago

4.2.49

1 year ago

4.2.48

1 year ago

4.2.47

1 year ago

4.2.46

1 year ago

4.2.45

1 year ago

4.2.44

1 year ago

4.2.43

1 year ago

4.2.42

1 year ago

4.2.41

1 year ago

3.2.41

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago