module Sfx { ( function ( ) { let module = angular . module ( "filters" , [ ] ) ; module . filter ( "trim" , [ function ( ) { return function ( str ) { return ( str || "" ) . replace ( /(^\s*|\s*$)/g , function ( match , group ) { return "" ; } ) ; } ; } ] ) ; module . filter ( "warningPrefix" , [ function ( ) { return ( str ) => { if ( str === StatusWarningLevel . Warning ) { return "Warning" ; } else if ( str === StatusWarningLevel . Error ) { return "Error" ; } else { return "Info" ; } } ; } ] ) ; } ) ( ) ; }