my-solutions/problems/1108-defanging-an-ip-address/main.rb

6 lines
104 B
Ruby
Raw Normal View History

2022-11-25 23:43:40 +05:00
# @param {String} address
# @return {String}
def defang_i_paddr(address)
2022-11-26 16:14:11 +05:00
address.gsub('.', '[.]')
2022-11-25 23:43:40 +05:00
end