Summary: Oops, when regexing start->left/right end->left/right I did not take into account flex-start and flex-end. Easiest solution is to regex back flex-left and flex-right into their correct values. Reviewed By: lucasr Differential Revision: D3930244 fbshipit-source-id: 20742cbc8e5f23af694e14584c7c3df89526876e
20 lines
637 B
Bash
Executable File
20 lines
637 B
Bash
Executable File
rm $(dirname $0)/test.html
|
|
$EDITOR $(dirname $0)/test.html
|
|
|
|
GENERIC_TEST="$(cat $(dirname $0)/test.html)"
|
|
LTR_TEST="$(cat $(dirname $0)/test.html)"
|
|
RTL_TEST="$(cat $(dirname $0)/test.html)"
|
|
|
|
LTR_TEST=${LTR_TEST//start/left}
|
|
LTR_TEST=${LTR_TEST//end/right}
|
|
LTR_TEST=${LTR_TEST//flex-left/flex-start}
|
|
LTR_TEST=${LTR_TEST//flex-right/flex-end}
|
|
|
|
RTL_TEST=${RTL_TEST//start/right}
|
|
RTL_TEST=${RTL_TEST//end/left}
|
|
RTL_TEST=${RTL_TEST//flex-right/flex-start}
|
|
RTL_TEST=${RTL_TEST//flex-left/flex-end}
|
|
|
|
printf "$(cat $(dirname $0)/test-template.html)" "$LTR_TEST" "$RTL_TEST" "$GENERIC_TEST" > $(dirname $0)/test.html
|
|
open $(dirname $0)/test.html
|