MCPcopy
hub / github.com/wavedrom/wavedrom / update

Function update

wavedrom.js:2122–2135  ·  view source on GitHub ↗
(s, cmd)

Source from the content-addressed store, hash-verified

2120var token = /<o>|<ins>|<s>|<sub>|<sup>|<b>|<i>|<tt>|<\/o>|<\/ins>|<\/s>|<\/sub>|<\/sup>|<\/b>|<\/i>|<\/tt>/;
2121
2122function update (s, cmd) {
2123 if (cmd.add) {
2124 cmd.add.split(';').forEach(function (e) {
2125 var arr = e.split(' ');
2126 s[arr[0]][arr[1]] = true;
2127 });
2128 }
2129 if (cmd.del) {
2130 cmd.del.split(';').forEach(function (e) {
2131 var arr = e.split(' ');
2132 delete s[arr[0]][arr[1]];
2133 });
2134 }
2135}
2136
2137var trans = {
2138 '<o>' : { add: 'text-decoration overline' },

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…