Skip to content

Commit

Permalink
Fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Aug 1, 2021
1 parent a31720d commit dfff4ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Prefixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ public function replaceClassname($contents, $originalClassname, $classnamePrefix
# potential second namespace declaration.
| # if found, match that much before continuing the search on
# the remainder of the string.
namespace\s+[a-zA-Z0-9_\x7f-\xff\\\\]+; # Skip lines just declaring the namespace.
|
([^a-zA-Z0-9_\x7f-\xff\$])('. $searchClassname . ')([^a-zA-Z0-9_\x7f-\xff])
/x'; // # x: ignore whitespace in regex.
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/PrefixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,5 +1317,4 @@ class NA

$this->assertEquals($contents, $result);
}

}

0 comments on commit dfff4ba

Please sign in to comment.