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:
parent
dc1ef24ad9
commit
0b4fcc19a1
@ -1638,6 +1638,7 @@ PtP
|
|||||||
PTpOWeR
|
PTpOWeR
|
||||||
PtS
|
PtS
|
||||||
PTTeam
|
PTTeam
|
||||||
|
PublicHD
|
||||||
Pudding
|
Pudding
|
||||||
PUKKA
|
PUKKA
|
||||||
Purana
|
Purana
|
||||||
|
7
website/scripts/escape.groovy
Normal file
7
website/scripts/escape.groovy
Normal 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')
|
Loading…
Reference in New Issue
Block a user