rechner.lua: Fehler bei , und . behoben
This commit is contained in:
parent
0b03b5b0e5
commit
1965853444
@ -7,13 +7,12 @@ local function mathjs(exp)
|
||||
local b,c = http.request(url)
|
||||
local text = nil
|
||||
if c == 200 then
|
||||
text = 'Ergebnis: '..string.gsub(b, "%.", "%,")
|
||||
text = 'Ergebnis: '..b
|
||||
|
||||
elseif c == 400 then
|
||||
text = b
|
||||
else
|
||||
text = 'Unerwarteter Fehler\n'
|
||||
..'Ist api.mathjs.org erreichbar?'
|
||||
text = 'Unerwarteter Fehler\nIst api.mathjs.org erreichbar?'
|
||||
end
|
||||
return text
|
||||
end
|
||||
|
Reference in New Issue
Block a user