mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #7324] Fix XSD regex for fqcn and tablename patterns #10424
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/7324
State: closed
Merged: No
Follow-up to #6389's discussion. Mainly: "
[u01-uff]" is just wrong (in any regex flavor, BTW).Recap of the currently incorrect cases (and inconsistencies):
tablename:`foo-bar`[does not allow the hyphen even if quoted] (while accepting`foo;bar`)foo;bar[allows the semicolon although unquoted] (while rejectingfoo-bar)fqcn:C[requires at least 2 chars]Foo;Bar[allows the semicolon] (while rejectingFoo-Bar)3lephant[allows digits for the first char]Note: the pattern for
fqcnis rather straightforward, but not so fortablename:myschema.mytable", wheremytablemay be quoted whereasmyschemamay not but will become ifmytableis (here -> here, then here -> there)...Also, this adds many small XML test files (mostly because invalid cases have to be tested separately [and I split the valid cases a bit], but not all are strictly necessary)...
(But still, I think that at least those "
u01-uff" should be fixed.)Found related: