aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jamendo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 23aae2c..a6989c6 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -300,8 +300,8 @@ end
-- them into symbols so we need to do it ourselves.
function utf8_codes_to_symbols (s)
local hexnums = "[%dabcdefABCDEF]"
- local pattern = string.format("\\u(%s%s%s%s?%s?)",
- hexnums, hexnums, hexnums, hexnums, hexnums)
+ local pattern = string.format("\\u(%s%s%s%s?)",
+ hexnums, hexnums, hexnums, hexnums)
local decode = function(code)
code = tonumber(code, 16)
if code < 128 then -- one-byte symbol