Skip to content

Instantly share code, notes, and snippets.

@wellercs
Created August 31, 2015 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellercs/51f563cb00b0b5fab569 to your computer and use it in GitHub Desktop.
Save wellercs/51f563cb00b0b5fab569 to your computer and use it in GitHub Desktop.
<cfscript>
// testxy gives expected results
testxy.actual_dimensions = "144xy210";
testxy.actual_dimension_width = listFirst(testxy.actual_dimensions, "x", true);
testxy.actual_dimension_height = listLast(testxy.actual_dimensions, "x", true);
writedump(testxy);
// testxx does not give expected results
// expected testxx.actual_dimension_height to be x210
testxx.actual_dimensions = "144xx210";
testxx.actual_dimension_width = listFirst(testxx.actual_dimensions, "x", true);
testxx.actual_dimension_height = listLast(testxx.actual_dimensions, "x", true);
writedump(testxx);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment