mirror of
https://github.com/kikito/inspect.lua.git
synced 2024-12-15 14:34:21 +00:00
fixed comment typos
This commit is contained in:
parent
1583badc2f
commit
b0d37e5251
@ -5,10 +5,8 @@
|
|||||||
-- inspired by http://lua-users.org/wiki/TableSerialization
|
-- inspired by http://lua-users.org/wiki/TableSerialization
|
||||||
-----------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- public function
|
|
||||||
|
|
||||||
-- Apostrophizes the string if it has quotes, but not aphostrophes
|
-- Apostrophizes the string if it has quotes, but not aphostrophes
|
||||||
-- Otherwise, it returns regular a requilar quoted string
|
-- Otherwise, it returns a regular quoted string
|
||||||
local function smartQuote(str)
|
local function smartQuote(str)
|
||||||
if string.match( string.gsub(str,"[^'\"]",""), '^"+$' ) then
|
if string.match( string.gsub(str,"[^'\"]",""), '^"+$' ) then
|
||||||
return "'" .. str .. "'"
|
return "'" .. str .. "'"
|
||||||
|
Loading…
Reference in New Issue
Block a user