This file has been truncated, but you can view the full file.
This file contains hidden or 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
*M-UNKNOWN MEXICAN TRUCKING COMPANY | |
8CON CONTSHIP CONTAINER LINE | |
99M UNKNOWN MEXICAN OVERLAND CARRIER | |
AAAB AAA MOTORS | |
AAAC AAACTION TRANSPORTATION INC | |
AAAD A A A DELIVERY INC | |
AAAG ATC LOGISTICS INC | |
AAAO AAMODT INC | |
AAAU ASIA CONTAINER LEASING CO LTD | |
AAAW AAA WALKER TRANSPORTATION SERVICES |
This file contains hidden or 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
/* jshint esnext: true */ | |
/* global _ */ | |
/* this version leverages _ lodash - oh Lord, stuck in lodash again */ | |
const formatData = thing => { | |
if (_.isNil(thing)) { | |
return thing; | |
} | |
if (_.isEmpty(thing)) { | |
return thing; | |
} |
This file contains hidden or 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
function formatData(thing) { | |
function sanitizeString(str) { | |
// discuss at: http://phpjs.org/functions/stripslashes/ | |
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// improved by: Ates Goral (http://magnetiq.com) | |
// improved by: marrtins | |
// improved by: rezna | |
// fixed by: Mick@el | |
// bugfixed by: Onno Marsman | |
// bugfixed by: Brett Zamir (http://brett-zamir.me) |