MCPcopy Create free account
hub / github.com/dchester/jsonpath / testRegExp

Function testRegExp

jsonpath.js:1043–1051  ·  view source on GitHub ↗
(pattern, flags)

Source from the content-addressed store, hash-verified

1041 }
1042
1043 function testRegExp(pattern, flags) {
1044 var value;
1045 try {
1046 value = new RegExp(pattern, flags);
1047 } catch (e) {
1048 throwError({}, Messages.InvalidRegExp);
1049 }
1050 return value;
1051 }
1052
1053 function scanRegExpBody() {
1054 var ch, str, classMarker, terminated, body;

Callers 1

scanRegExpFunction · 0.85

Calls 1

throwErrorFunction · 0.85

Tested by

no test coverage detected