MCPcopy
hub / github.com/jscad/OpenJSCAD.org / regexMap

Function regexMap

src/ui/viewer/lightgl.js:817–822  ·  view source on GitHub ↗
(regex, text, callback)

Source from the content-addressed store, hash-verified

815 // }).draw(mesh);
816
817 function regexMap(regex, text, callback) {
818 var result;
819 while((result = regex.exec(text)) !== null) {
820 callback(result);
821 }
822 }
823
824 // Non-standard names beginning with `gl_` must be mangled because they will
825 // otherwise cause a compiler error.

Callers 2

ShaderFunction · 0.85
fixFunction · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected