MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / removeFormattingTokens

Function removeFormattingTokens

tests/test_code/js/moment/moment.js:483–488  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

481 }
482
483 function removeFormattingTokens(input) {
484 if (input.match(/\[[\s\S]/)) {
485 return input.replace(/^\[|\]$/g, '');
486 }
487 return input.replace(/\\/g, '');
488 }
489
490 function makeFormatFunction(format) {
491 var array = format.match(formattingTokens),

Callers 1

makeFormatFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected