Action
Hash Tag Transposition (Line-Based)
Posted by sylumer,
Last update
over 3 years ago
- Unlisted
Move the first hash tag and anything after it to the start of the line. This is intended to move hash tags at the end of a line to the start of a line.
Steps
-
script
draft.content = draft.lines.map(strLine => strLine.replace(/^(.*?) \#(.*)/, "#$2 $1")).join("\n"); draft.update();
Options
-
After Success Default Notification Error Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.