1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

* helper script for escaping argument strings

This commit is contained in:
Reinhard Pointner 2013-09-22 05:30:11 +00:00
parent dc1ef24ad9
commit 0b4fcc19a1
2 changed files with 8 additions and 0 deletions

View File

@ -1638,6 +1638,7 @@ PtP
PTpOWeR PTpOWeR
PtS PtS
PTTeam PTTeam
PublicHD
Pudding Pudding
PUKKA PUKKA
Purana Purana

View File

@ -0,0 +1,7 @@
net.sourceforge.filebot.cli.CLILogging.CLILogger.setLevel(java.util.logging.Level.OFF)
console.printf('Enter: ')
def s = console.readLine()
// $, `, or \
console.printf('%n"' + s.replaceAll('["$`\\\\]', {'\\'+it}) + '"%n')