flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.62k stars 409 forks source link

Route preg_match() error #482

Closed oscarlosan closed 7 months ago

oscarlosan commented 1 year ago

if i add this route Flight::route('/', function(){ echo 'hello world!'; }); I get this error: [2] preg_match(): Compilation failed: range out of order in character class at offset 39 en la línea 132 en el archivo C:\xampp\htdocs\pb.com_beta3\codecore\flight\net\Route.php

Note: I am using php 7.4.27 and Flight 2.0.1

n0nag0n commented 7 months ago

Could you retry this now with the new updates? I'm thinking it's your environment issue because that is such a basic route. There's a chance your PCRE didn't compile correctly on your windows environment.