Logo

Programming-Idioms

History of Idiom 110 > diff from v62 to v63

Edit summary for version 63 by programming-idioms.org:
Admin deletes impl 1667: Doesn't work. See http://codepad.org/uOOuuNQ6 , https://repl.it/join/ivigzcxi-progidioms , https://repl.it/join/mcogtkjo-progidioms

Version 62

2021-03-03, 05:08:19

Version 63

2021-03-04, 08:22:57

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Code
blank = s ~= nil
Comments bubble
%S is the pattern for "not a space"
Demo URL
http://codepad.org/uOOuuNQ6