8.9.103 • Published 1 year ago

@diotoborg/soluta-in v8.9.103

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

8.9.102

1 year ago

8.9.101

1 year ago

8.9.100

1 year ago

8.9.99

1 year ago

8.9.98

1 year ago

8.9.97

1 year ago

7.9.97

1 year ago

7.9.96

1 year ago

7.9.95

1 year ago

7.9.94

1 year ago

7.9.93

1 year ago

7.9.92

1 year ago

7.9.91

1 year ago

7.9.90

1 year ago

7.8.90

1 year ago

7.7.90

1 year ago

7.7.89

1 year ago

7.7.88

1 year ago

7.7.87

1 year ago

6.7.87

1 year ago

6.7.86

1 year ago

6.7.85

1 year ago

6.7.84

1 year ago

6.7.83

1 year ago

6.7.82

1 year ago

6.7.81

1 year ago

6.7.80

1 year ago

6.7.79

1 year ago

6.7.78

1 year ago

6.7.77

1 year ago

6.6.77

1 year ago

6.6.76

1 year ago

6.6.75

1 year ago

5.6.75

1 year ago

5.5.75

1 year ago

5.5.74

1 year ago

5.5.73

1 year ago

5.4.73

1 year ago

5.4.72

1 year ago

5.3.72

1 year ago

5.3.71

1 year ago

5.3.70

1 year ago

5.3.69

1 year ago

5.3.68

1 year ago

5.3.67

1 year ago

5.3.66

1 year ago

5.2.66

1 year ago

5.2.65

1 year ago

4.2.65

1 year ago

4.2.64

1 year ago

4.2.63

1 year ago

4.2.62

1 year ago

4.2.61

1 year ago

4.2.60

1 year ago

4.2.59

1 year ago

4.2.58

1 year ago

4.2.57

1 year ago

4.2.56

1 year ago

4.2.55

1 year ago

4.2.54

1 year ago

4.2.53

1 year ago

4.2.52

1 year ago

4.2.51

1 year 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