Add tags

Add tags to the following comment

uri でもでき、こちらのほうが柔軟です。

第二引数にマッチする文字がエンコードされます。デフォルトは URI::UNSAFE で確認できます。

1
2
3
4
5
6
7
8
9
require "uri"

p URI.escape("~url quote")
#=> "~url%20quote"
p URI.escape("~url quote", /./)
#=> "%7E%75%72%6C%20%71%75%6F%74%65"

p URI::UNSAFE
#=> /[^-_.!~*'()a-zA-Z¥d;\/?:@&=+$,\[\]]/n

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...