GlotPress / GlotPress-WP
Showing 1 of 2 files from the diff.

@@ -374,7 +374,7 @@
Loading
374 374
		 *
375 375
		 * @param string $placeholders_re Regular expression pattern without leading or trailing slashes.
376 376
		 */
377 -
		$placeholders_re = apply_filters( 'gp_warning_placeholders_re', '(?<!%)%(\d+\$(?:\d+)?)?[bcdefgosuxEFGX%l@]' );
377 +
		$placeholders_re = apply_filters( 'gp_warning_placeholders_re', '(?<!%)%(\d+\$(?:\d+)?)?(\.\d+)?[bcdefgosuxEFGX%l@]' );
378 378
379 379
		$original_counts    = $this->_placeholders_counts( $original, $placeholders_re );
380 380
		$translation_counts = $this->_placeholders_counts( $translation, $placeholders_re );
@@ -617,7 +617,7 @@
Loading
617 617
			preg_match_all( '/(?P<context>[^\s%]*)%((\d+\$(?:\d+)?)?(?P<char>.))/i', $translation, $m );
618 618
			foreach ( $m['char'] as $i => $char ) {
619 619
				// % is included for escaped %%.
620 -
				if ( false === strpos( 'bcdefgosux%l', $char ) ) {
620 +
				if ( false === strpos( 'bcdefgosux%l.', $char ) ) {
621 621
					$unexpected_tokens[] = $m[0][ $i ];
622 622
				}
623 623
			}
Files Complexity Coverage
gp-includes 1,328 55.47%
glotpress.php 0 0.00%
gp-settings.php 0 0.00%
locales/locales.php 28 99.18%
Project Totals (58 files) 1356 68.32%
1
coverage:
2
  status:
3
    patch: false
4
    changes: false
5
    project:
6
      default:
7
        target: auto
8
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading