Skip to content

Commit 9bf5307

Browse files
committed
Fix README; adapt test to fit tests name
Complements 078b461.
1 parent 078b461 commit 9bf5307

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,10 @@ Encodes a field value as URI. Aka percent-encoding.
717717

718718
Options:
719719

720-
- `allow_empty_values`: Sets whether to allow empty values in the filemap or to ignore these entries. (Default: `false`)
721-
- `compression`: Sets the compression of the file.
722-
720+
- `plus_for_space`: Sets whether "space" (' ') will be substituted by a "plus" ('+') or be percent escaped ('%20'). Default: `true`)
721+
- `safe_chars`: Sets characters that won't be escaped. Safe characters are the
722+
ranges 0..9, a..z and A..Z. These are always safe and should not be specified.
723+
Default safe characters are also ".", "-", "*", and "_".
723724

724725
```perl
725726
uri_encode("<sourceField>"[, <options>...])

metafix/src/test/java/org/metafacture/metafix/MetafixMethodTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,7 +4047,7 @@ public void shouldUriEncodePathSegmentWithoutPlusForSpace() {
40474047
@Test
40484048
public void shouldUriEncodePathSegmentWithoutSafeChars() {
40494049
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
4050-
"uri_encode('id', safe_chars:'', plus_for_space:'false')"
4050+
"uri_encode('id', safe_chars:'')"
40514051
),
40524052
i -> {
40534053
i.startRecord("1");
@@ -4056,7 +4056,7 @@ public void shouldUriEncodePathSegmentWithoutSafeChars() {
40564056
},
40574057
o -> {
40584058
o.get().startRecord("1");
4059-
o.get().literal("id", "%2FDE%2DA96%3A%25%20%283%29%23%21");
4059+
o.get().literal("id", "%2FDE%2DA96%3A%25+%283%29%23%21");
40604060
o.get().endRecord();
40614061
}
40624062
);

0 commit comments

Comments
 (0)