mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -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
|
// Before validating, remove custom placeholders, which will not
|
||||||
// be considered valid parts of the URL in some locations:
|
// be considered valid parts of the URL in some locations:
|
||||||
// Blank %d and %s:
|
// Blank %t and %s:
|
||||||
valueString = valueString.replaceAll("%[sd]", "");
|
valueString = valueString.replaceAll("%[st]", "");
|
||||||
// Blank %f but not if followed by digit or a-f as it may be a hex sequence
|
// 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])", "");
|
valueString = valueString.replaceAll("%f(?![0-9a-f])", "");
|
||||||
// Require a scheme otherwise:
|
// Require a scheme otherwise:
|
||||||
|
|
Loading…
Reference in a new issue