mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Add "urlencode" chat action formatter
This commit is contained in:
parent
eea9d51bdc
commit
fd28caf146
2 changed files with 4 additions and 0 deletions
|
@ -320,6 +320,9 @@ export default class Actions extends Module {
|
|||
slugify(val, locale, options, extra) {
|
||||
return val.toString().toSlug(extra && extra.length ? extra : '-');
|
||||
},
|
||||
urlencode(val) {
|
||||
return encodeURIComponent(val);
|
||||
},
|
||||
word(val, locale, options, extra) {
|
||||
if (! extra || ! extra.length)
|
||||
return val;
|
||||
|
|
|
@ -509,6 +509,7 @@ export default {
|
|||
out.push('snakecase');
|
||||
out.push('slugify');
|
||||
out.push('slugify(separator)');
|
||||
out.push('urlencode');
|
||||
|
||||
return out.join(', ');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue