huginn
https://github.com/cantino/huginn
Ruby
Create agents that monitor and act on your behalf. Your agents are standing by!
LiquidInterpolatable::Filters#unescape_replacement
Unescape a replacement text for use in the second argument of
gsub/sub. The following escape sequences are recognized:
- "\\" (backslash itself)
- "\a" (alert)
- "\b" (backspace)
- "\e" (escape)
- "\f" (form feed)
- "\n" (new line)
- "\r" (carriage return)
- "\s" (space)
- "\t" (horizontal tab)
- "\u{XXXX}" (unicode codepoint)
- "\v" (vertical tab)
- "\xXX" (hexadecimal character)
- "\1".."\9" (numbered capture groups)
- "\+" (last capture group)
- "\k<name>" (named capture group)
- "\&" or "\0" (complete matched text)
- "\`" (string before match)
- "\'" (string after match)
Octal escape sequences are deliberately unsupported to avoid
conflict with numbered capture groups. Rather obscure Emacs
style character codes ("\C-x", "\M-\C-x" etc.) are also omitted
from this implementation.Edit
git clone [email protected]:cantino/huginn.git
cd huginn
open app/concerns/liquid_interpolatable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-LiquidInterpolatable--Filters-unescape_replacement-for-pr
# Commit to gitgit add app/concerns/liquid_interpolatable.rbgit commit -m "better docs for LiquidInterpolatable::Filters#unescape_replacement"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-LiquidInterpolatable--Filters-unescape_replacement-for-pr
hub pull-request
# Celebrate!