github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/app/containers/logs.controller.js (about) 1 (function(){ 2 'use strict'; 3 4 angular 5 .module('shipyard.containers') 6 .controller('LogsController', LogsController); 7 8 LogsController.$inject = ['resolvedLogs', '$stateParams']; 9 function LogsController(resolvedLogs, $stateParams) { 10 var vm = this; 11 vm.id = $stateParams.id; 12 // ASCII is in range of 0 to 127, so strip anything not in that range 13 vm.logs = resolvedLogs.replace(/[^\x00-\x7F]/g, ""); 14 } 15 })();