MCPcopy
hub / github.com/Bistutu/FluentRead / procOpenai

Function procOpenai

userscripts.js:1947–1958  ·  view source on GitHub ↗
(node, respMap)

Source from the content-addressed store, hash-verified

1945
1946
1947function procOpenai(node, respMap) {
1948 let text = format(node.textContent);
1949 if (text && withoutChinese(text)) {
1950 let dateOrFalse = parseDateOrFalse(text);
1951 if (dateOrFalse) {
1952 node.textContent = `${dateOrFalse.getFullYear()}-${dateOrFalse.getMonth() + 1}-${dateOrFalse.getDate()}`;
1953 return;
1954 }
1955
1956 processNode(node, textType.textContent, respMap);
1957 }
1958}
1959
1960
1961// 适配 maven

Callers

nothing calls this directly

Calls 4

formatFunction · 0.85
withoutChineseFunction · 0.85
parseDateOrFalseFunction · 0.85
processNodeFunction · 0.85

Tested by

no test coverage detected