Skip to content

Commit

Permalink
escape seems not needed in this regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Klap-in committed Aug 10, 2022
1 parent 20cc304 commit 1d87167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function getAttributes($data, $useNoPrefix=true) {
}

//get lang
if (preg_match('/\:([a-z\-]+)/', $token)) {
if (preg_match('/:([a-z\-]+)/', $token)) {
$attr['lang'] = trim($token,':');
continue;
}
Expand Down

0 comments on commit 1d87167

Please sign in to comment.