Skip to content

Commit

Permalink
Missing slash in pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
FranSlot committed Dec 15, 2023
1 parent 6e33c55 commit 5960b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RAP4/customizations/bootstrap/files/ExecEngineFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@
* - run kubectl apply -f "student-manifest-{{student}}.yaml"
*/

$pattern = "\W+";
$pattern = '/[\W+]/';

$studentName=strtolower($userName);
$studentName = preg_replace($pattern, "-", $studentName);
$studentName = preg_replace($pattern, '-', $studentName);

$namespace=getenv('RAP_KUBERNETES_NAMESPACE');
$containerImage=getenv('RAP_STUDENT_PROTO_IMAGE');
Expand Down

0 comments on commit 5960b42

Please sign in to comment.