mirror of
				https://github.com/shuchkin/simplexlsxgen.git
				synced 2023-08-10 21:12:59 +03:00 
			
		
		
		
	1.0.18
This commit is contained in:
		| @@ -1,5 +1,9 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## 1.0.18 (2021-07-28) | ||||
|  | ||||
| * Fixed email regex | ||||
|  | ||||
| ## 1.0.17 (2021-07-28) | ||||
|  | ||||
| * Fixed " and & in sheets names | ||||
|   | ||||
| @@ -504,7 +504,7 @@ class SimpleXLSXGen { | ||||
| 								$h = explode( '#', $v ); | ||||
| 								$this->sheets[ $idx ]['hyperlinks'][] = ['ID' => 'rId' . ( count( $this->sheets[ $idx ]['hyperlinks'] ) + 1 ), 'R' => $cname, 'H' => $h[0], 'L' => isset( $h[1] ) ? $h[1] : '']; | ||||
| 								$F = self::F_HYPERLINK; // Hyperlink | ||||
| 							} elseif ( preg_match( "/^([a-zA-Z0-9_\.\-]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z0-9\-\.]*)$/i", $v ) ) { | ||||
| 							} elseif ( preg_match( "/^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/", $v ) ) { | ||||
| 								$this->sheets[ $idx ]['hyperlinks'][] = ['ID' => 'rId' . ( count( $this->sheets[ $idx ]['hyperlinks'] ) + 1 ), 'R' => $cname, 'H' => 'mailto:' . $v, 'L' => '']; | ||||
| 								$F = self::F_HYPERLINK; // Hyperlink | ||||
| 							} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey Shuchkin
					Sergey Shuchkin