MCPcopy Create free account
hub / github.com/csev/py4e / removeFormattingTokens

Function removeFormattingTokens

code/gmane/Chart.bundle.js:2044–2049  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

2042 }
2043
2044 function removeFormattingTokens(input) {
2045 if (input.match(/\[[\s\S]/)) {
2046 return input.replace(/^\[|\]$/g, '');
2047 }
2048 return input.replace(/\\/g, '');
2049 }
2050
2051 function makeFormatFunction(format) {
2052 var array = format.match(formattingTokens), i, length;

Callers 1

makeFormatFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected