mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
use regex to check number of padding spaces
This commit is contained in:
3
build/test.rb
Normal file
3
build/test.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
s = " lol "
|
||||
puts s[/\A +/].size
|
||||
puts s[/ +\z/].size
|
||||
Reference in New Issue
Block a user