Skip to content

Instantly share code, notes, and snippets.

@gravelld
Created November 16, 2017 09:35
Show Gist options
  • Save gravelld/a4888e55764ce0dc433e4fe6621f345c to your computer and use it in GitHub Desktop.
Save gravelld/a4888e55764ce0dc433e4fe6621f345c to your computer and use it in GitHub Desktop.
A custom rule to remove leading and trailing square brackets from genres. Easily adapted to apply to other tags.
rule trim_brackets with label "Trim square brackets" has alternatives
DEBRACKET {
find /^\[*([^\]]*)\]*$/ replace with "$1"
}
applies to genre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment