mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-09-06 08:04:11 +00:00
adds quotation to create filename util replacement char
This commit is contained in:
parent
6f51c47dc9
commit
6d0bb02544
|
@ -7,6 +7,7 @@ import androidx.preference.PreferenceManager;
|
||||||
|
|
||||||
import org.schabi.newpipe.R;
|
import org.schabi.newpipe.R;
|
||||||
|
|
||||||
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
public final class FilenameUtils {
|
public final class FilenameUtils {
|
||||||
|
@ -51,7 +52,7 @@ public final class FilenameUtils {
|
||||||
|
|
||||||
final Pattern pattern = Pattern.compile(charset);
|
final Pattern pattern = Pattern.compile(charset);
|
||||||
|
|
||||||
return createFilename(title, pattern, replacementChar);
|
return createFilename(title, pattern, Matcher.quoteReplacement(replacementChar));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue