Module:Check isxn: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
add error string |
testing |
||
Line 66: | Line 66: | ||
local temp = 0; |
local temp = 0; |
||
if isbn_str:match( "^97[89]%d*$" ) == nil then return false; end -- isbn13 begins with 978 or 979; ismn begins with 979 |
if isbn_str:match( "^97[89]%d*$" ) == nil then return false; end -- isbn13 begins with 978 or 979; ismn begins with 979 |
||
return is_valid_isxn_13 (isbn_str) and '' or |
return is_valid_isxn_13 (isbn_str) and '' or 'test'; |
||
end |
end |
||
end |
end |