Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TeleBoxOrg/TeleBox_Plugins
/ pushCurrent
Method
pushCurrent
calc/calc.ts:44–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
43
const
tokens: string[] = [];
44
let
current =
""
;
45
46
const
pushCurrent = () => {
47
if
(!current)
return
;
48
if
(!this.isNumber(current)) {
49
throw
new
Error(`无效的数字: ${current}`);
50
}
51
tokens.push(current);
52
current =
""
;
53
};
54
Callers
nothing calls this directly
Calls
1
isNumber
Method · 0.95
Tested by
no test coverage detected