blib/lib/CFDI/Regex/XML.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 3 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 4 | 4 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CFDI::Regex::XML; | ||||||
2 | 1 | 1 | 5 | use strict; | |||
1 | 1 | ||||||
1 | 215 | ||||||
3 | require Exporter; | ||||||
4 | our $VERSION = 0.31; | ||||||
5 | our @EXPORT = qw($qr_na $qr_va $qr_at $qr_ta); | ||||||
6 | our @ISA = qw(Exporter); | ||||||
7 | our $qr_na = qr/(?:[a-zA-Z_](?:[-.\w]*:?[-.\w]+)?)/; | ||||||
8 | our $qr_va = qr/(?:"[^"<]*"|'[^'<]*')/; | ||||||
9 | our $qr_at = qr/(?:$qr_na\s*=\s*$qr_va\s*)/; | ||||||
10 | our $qr_ta = qr%^(?:($qr_na)\s*($qr_at*)(/?)|/($qr_na)\s*|!--(.*)--|\?(.*)\?)$%s; | ||||||
11 | 1; |