MCPcopy Create free account
hub / github.com/LFYSec/MScan / extractConditions

Method extractConditions

src/main/java/pascal/taie/config/Configs.java:73–77  ·  view source on GitHub ↗

Extracts conditions (represented by a string) from given require item.

(String require)

Source from the content-addressed store, hash-verified

71 * Extracts conditions (represented by a string) from given require item.
72 */
73 static String extractConditions(String require) {
74 int index = require.indexOf('(');
75 return index == -1 ? null :
76 require.substring(index + 1, require.length() - 1);
77 }
78
79 /**
80 * Checks if options satisfy the given conditions.

Callers 1

getRequiredConfigsMethod · 0.95

Calls 1

lengthMethod · 0.65

Tested by

no test coverage detected