MCPcopy Index your code
hub / github.com/compat-table/compat-table / escapeTestName

Function escapeTestName

build.js:480–482  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

478 }
479
480 function escapeTestName(name) {
481 return name.replace(/^[\s<>&"',]+|[\s<>&"',]+$/g, '').replace(/[\s<>&"]+/g, '_');
482 }
483
484 function generateMdnLink(url) {
485 return ' <a href="' + url + '" title="MDN documentation"><img src="../mdn.png" alt="MDN (Mozilla Development Network) logo" width="15" height="13" /></a>&nbsp;';

Callers 1

dataToHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected