function e(e){if(null==e||""===e)return!1;if(e.indexOf("http")>=0){var n=e.toLowerCase().substr(e.indexOf("."),e.length);return n.indexOf(".webm")>=0||n.indexOf(".mkv")>=0||n.indexOf(".flv")>=0||n.indexOf(".flv")>=0||n.indexOf(".vob")>=0||n.indexOf(".ogv")>=0||n.indexOf(".drc")>=0||n.indexOf(".gif")>=0||n.indexOf(".gifv")>=0||n.indexOf(".mng")>=0||n.indexOf(".avi")>=0||n.indexOf(".MTS")>=0||n.indexOf(".mov")>=0||n.indexOf(".wmv")>=0||n.indexOf(".yuv")>=0||n.indexOf(".rm")>=0||n.indexOf(".rmvb")>=0||n.indexOf(".viv")>=0||n.indexOf(".asf")>=0||n.indexOf(".amv")>=0||n.indexOf(".mp4")>=0||n.indexOf(".mpg")>=0||n.indexOf(".mpeg")>=0||n.indexOf(".m4v")>=0||n.indexOf(".svi")>=0||n.indexOf(".3gp")>=0||n.indexOf(".3g2")>=0||n.indexOf(".mxf")>=0||n.indexOf(".roq")>=0||n.indexOf(".nsv")>=0||n.indexOf(".flv ")>=0}return!1}function n(e){return e?e.replace(/<\/?[^>]+(>|$)/g,""):e}function i(e){return e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}function f(e){var n=e.replace(/[^0-9]/g," ").trim().split(/\s+/);return parseInt(n[n.length-1],10)}function r(e){var n=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length?"https://youtube.com/embed/"+n[2]:""}function t(e){try{var n=e.indexOf('src="')+5,i=e.substr(n).indexOf('"'),f=e.substring(n,n+i);if(f&&f.length>0){return f.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2]}}catch(e){console.log(e)}return""}require("fs");export{i as convertToSlug,f as getLastNumberOfString,e as isVideo,t as srcIframeParser,n as stripHtml,r as youtubeParser};
//# sourceMappingURL=string.js.map
