Minor fixes, edge cases analysis, filter addition and update to transfem webring source and my ID.
All checks were successful
Website Sync / website-sync (push) Successful in 5s
All checks were successful
Website Sync / website-sync (push) Successful in 5s
This commit is contained in:
@@ -26,7 +26,7 @@ function getFile(array $source){
|
||||
|
||||
// Returns the given sub-string given a initial search pattern, and a final end pattern.
|
||||
function extractString(string $string,string $start_pattern, string $end_pattern) {
|
||||
$start_pos = strpos($string,$start_pattern,strlen($start_pattern));
|
||||
$start_pos = strpos($string,$start_pattern,strlen($start_pattern)) + strlen($start_pattern);
|
||||
$end_pos = strpos($string,$end_pattern, $start_pos);
|
||||
|
||||
$extracted_string = substr($string, $start_pos, $end_pos - $start_pos);
|
||||
|
||||
Reference in New Issue
Block a user