Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Regex failure in PHP 5.4, 5.5 lead to wrong tags #16

Open
jean343 opened this issue Aug 28, 2014 · 1 comment
Open

Regex failure in PHP 5.4, 5.5 lead to wrong tags #16

jean343 opened this issue Aug 28, 2014 · 1 comment

Comments

@jean343
Copy link

jean343 commented Aug 28, 2014

Hello,

When my server was upgraded to PHP 5.4, 5.5 the following warning was shown.
Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in Everzet/Jade/Lexer/Lexer.php on line 181

Escaping the dash and changing the regex for '/^(\w[:-\w]*)/' solved the problem for me.

@ericzwong
Copy link

Because [:-] likes [a-z] , you can change scanTag() function in jade/src/Everzet/Jade/Lexer/Lexer.php

like /^(\w[-:\w]*)/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants