aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-23 17:31:43 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-23 17:31:43 +0200
commit5e59e90c6e0d309933aad9c65e75f1a26826b5ab (patch)
tree5f7cb46ed0da47da2058cb52effbf24a4d9f8aad
parenta668e5809f71f1ca27fb040a8a0b4a7b2816b5f4 (diff)
parent02120d10536bea901c3e41da019eec3490526439 (diff)
downloadConsistency-5e59e90c6e0d309933aad9c65e75f1a26826b5ab.zip
Consistency-5e59e90c6e0d309933aad9c65e75f1a26826b5ab.tar.gz
Consistency-5e59e90c6e0d309933aad9c65e75f1a26826b5ab.tar.bz2
Merge branch 'issue_12' into incoming
-rw-r--r--Consistency.php2
-rw-r--r--Test/Unit/Consistency.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Consistency.php b/Consistency.php
index c0738be..87b7b27 100644
--- a/Consistency.php
+++ b/Consistency.php
@@ -211,7 +211,7 @@ class Consistency
public static function isIdentifier($id)
{
return 0 !== preg_match(
- '#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#',
+ '#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x80-\xff]*$#',
$id
);
}
diff --git a/Test/Unit/Consistency.php b/Test/Unit/Consistency.php
index b705015..e5415b2 100644
--- a/Test/Unit/Consistency.php
+++ b/Test/Unit/Consistency.php
@@ -223,7 +223,7 @@ class Consistency extends Test\Unit\Suite
public function case_is_identifier()
{
$this
- ->given($_identifier = $this->realdom->regex('#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#'))
+ ->given($_identifier = $this->realdom->regex('#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x80-\xff]*$#'))
->when(function () use ($_identifier) {
foreach ($this->sampleMany($_identifier, 1000) as $identifier) {
$this