Remove declaration of extractFromDelimiters, it is now a reusable function. Fixes #815

This commit is contained in:
Quentin Delmas 2018-09-10 09:29:19 +01:00
parent b397a42876
commit 458b826871

View file

@ -17,16 +17,6 @@ class FB2Bridge extends BridgeAbstract {
public function collectData(){
function extractFromDelimiters($string, $start, $end){
if(strpos($string, $start) !== false) {
$section_retrieved = substr($string, strpos($string, $start) + strlen($start));
$section_retrieved = substr($section_retrieved, 0, strpos($section_retrieved, $end));
return $section_retrieved;
}
return false;
}
//Utility function for cleaning a Facebook link
$unescape_fb_link = function($matches){
if(is_array($matches) && count($matches) > 1) {