mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge
This commit is contained in:
commit
e29bbcfc09
1 changed files with 5 additions and 5 deletions
|
@ -175,14 +175,14 @@ foreach my $setName (keys %{$cards{$cardName}}) {
|
||||||
|
|
||||||
my $notKeyWord;
|
my $notKeyWord;
|
||||||
foreach my $keyword (keys %keywords) {
|
foreach my $keyword (keys %keywords) {
|
||||||
if (index(toCamelCase($ability), $keyword) eq 0) {
|
if (toCamelCase($ability) =~ m/^$keyword(?=[A-Z{\d]|$)/g) {
|
||||||
$notKeyWord = 'no';
|
$notKeyWord = 'false';
|
||||||
my @ka = split(', ', $ability);
|
my @ka = split(', ', $ability);
|
||||||
foreach my $kw (@ka) {
|
foreach my $kw (@ka) {
|
||||||
my $kwUnchanged = $kw;
|
my $kwUnchanged = $kw;
|
||||||
foreach my $keyword (keys %keywords) {
|
foreach my $kk (keys %keywords) {
|
||||||
if (index(toCamelCase($kw), $keyword) eq 0) {
|
if (toCamelCase($kw) =~ m/^$kk(?=[A-Z{\d]|$)/g) {
|
||||||
$kw = $keyword;
|
$kw = $kk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($keywords{$kw}) {
|
if ($keywords{$kw}) {
|
||||||
|
|
Loading…
Reference in a new issue