Changeset 2483268
- Timestamp:
- 03/01/2021 04:44:42 AM (5 years ago)
- File:
-
- 1 edited
-
embed-githubin/trunk/githubin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-githubin/trunk/githubin.php
r2252207 r2483268 5 5 * Version: 1.1 6 6 * Author: laresistenciadelbit 7 * Author URI: https://laresistenciadelbit. meph.website7 * Author URI: https://laresistenciadelbit.diab.website 8 8 */ 9 9 function githubin($atts) … … 163 163 $content_githubin=preg_replace('/<!DOCTYPE[\s\S]*?<div id=\"user-repositories-list/imu','<div id="user-repositories-list',$content_githubin); 164 164 $content_githubin=preg_replace('/<!DOCTYPE[\s\S]*?<div class=\"org-repos repo-list/imu','<div class="org-repos repo-list',$content_githubin); 165 //quitamos todos los nuevos span que han añadido (2021-03-01) 166 while( preg_match( '/<span[\s\S]*?<\/span>/imu', $content_githubin) ) 167 $content_githubin=preg_replace('/<span[\s\S]*?<\/span>/imu','',$content_githubin); 168 while( preg_match( '/<\/span>/imu', $content_githubin) ) 169 $content_githubin=preg_replace('/<\/span>/imu','',$content_githubin); 170 while( preg_match( '/Updated <relative-time[\s\S]*?<\/relative-time>/imu', $content_githubin) ) 171 $content_githubin=preg_replace('/Updated <relative-time[\s\S]*?<\/relative-time>/imu','',$content_githubin); 165 172 break; 166 173 }
Note: See TracChangeset
for help on using the changeset viewer.