Skip to content

Commit

Permalink
fix php7.3 regexp hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
thib66 authored Mar 11, 2019
1 parent 1172f74 commit baaa350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function load_template_list() {
}

public function get_template($type) {
$type = preg_replace('/[^\p{L}_\p{N}\s-:]/u','', $type);
$type = preg_replace('/[^\p{L}_\p{N}\s\-:]/u','', $type);
$result = $this->load_template_list();
if (isset($result['success']) && $result['success'] == false) {
return $result;
Expand Down

0 comments on commit baaa350

Please sign in to comment.