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 b,c = http.request(url)
|
||||||
local text = nil
|
local text = nil
|
||||||
if c == 200 then
|
if c == 200 then
|
||||||
text = 'Ergebnis: '..string.gsub(b, "%.", "%,")
|
text = 'Ergebnis: '..b
|
||||||
|
|
||||||
elseif c == 400 then
|
elseif c == 400 then
|
||||||
text = b
|
text = b
|
||||||
else
|
else
|
||||||
text = 'Unerwarteter Fehler\n'
|
text = 'Unerwarteter Fehler\nIst api.mathjs.org erreichbar?'
|
||||||
..'Ist api.mathjs.org erreichbar?'
|
|
||||||
end
|
end
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user