mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Issue #80 : handle %t not %d escape
This commit is contained in:
parent
85417072e1
commit
16ed2542fe
|
@ -109,8 +109,8 @@ public final class PreferencesFragment
|
|||
}
|
||||
// Before validating, remove custom placeholders, which will not
|
||||
// be considered valid parts of the URL in some locations:
|
||||
// Blank %d and %s:
|
||||
valueString = valueString.replaceAll("%[sd]", "");
|
||||
// Blank %t and %s:
|
||||
valueString = valueString.replaceAll("%[st]", "");
|
||||
// Blank %f but not if followed by digit or a-f as it may be a hex sequence
|
||||
valueString = valueString.replaceAll("%f(?![0-9a-f])", "");
|
||||
// Require a scheme otherwise:
|
||||
|
|
Loading…
Reference in a new issue