text: angular.module("ivh.elideFilter",[]),angular.module("ivh.elideFilter").filter("ivhElide",function(){"use strict";var a=25,b=!1,c="...",d=[3,2];return function(e,f,g){f=angular.isUndefined(f)?a:f,g=angular.isUndefined(g)?b:g;var h=e.length;if(f>e)return e;if(!g&&h<f+d[1])return e;if(g)return e.substring(0,f)+c;if(/\W/.test(e.charAt(f)))return e.substring(0,f)+c;for(var i=f,j=0,k=!1,l=!1;!k&&!l;){if(j++,!k){if(/\W/.test(e.charAt(i+j)))return e.substring(0,f+j)+c;j>d[1]&&(k=!0)}if(!l){if(/\W/.test(e.charAt(i-j)))return e.substring(0,f-j)+c;j>d[0]&&(l=!0)}}return e.substring(0,f)+c}});