-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue yahoo#13 replace multiple tokens per value, if possible
if a string value contains multiple $$tokens$$, replace them all if they resolve to a value. todo: needs refactoring
- Loading branch information
Isao Yagi
committed
May 7, 2013
1 parent
dc004cb
commit 3febd6d
Showing
3 changed files
with
101 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"key0": { | ||
"key1": "value1", | ||
"key2": "value2", | ||
"key3": "value1", | ||
"key4": "The value of key0.key2 is value2" | ||
}, | ||
"key5": { | ||
"key1": "value1", | ||
"key2": "value2", | ||
"key3": "value1", | ||
"key4": "The value of key0.key2 is value2" | ||
}, | ||
"key6": { | ||
"key7": { | ||
"key8": { | ||
"key1": "value1", | ||
"key2": "value2", | ||
"key3": "value1", | ||
"key4": "The value of key0.key2 is value2" | ||
} | ||
}, | ||
"key9": [1, 2, "The value of key0.key2 is value2", 3, 4] | ||
}, | ||
"$$key0.key1$$": "--YCB-SUBSTITUTION-ERROR--", | ||
"key10": { | ||
"key11": { | ||
"key1": "value1", | ||
"key2": "value2", | ||
"key3": "value1", | ||
"key4": "The value of key0.key2 is value2" | ||
} | ||
}, | ||
"key11": ["a", "b", 1, 2, "The value of key0.key2 is value2", 3, 4, "c", "d"], | ||
"key8": { | ||
"key1": "value1", | ||
"key2": "value2", | ||
"key3": "value1", | ||
"key4": "The value of key0.key2 is value2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters