Plugin Directory

Changeset 1922827


Ignore:
Timestamp:
08/10/2018 10:31:57 AM (8 years ago)
Author:
martindrapeau
Message:

fixed bug with short name detection in event name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • amilia-store/trunk/amilia-store.php

    r1922641 r1922827  
    417417        }
    418418        function getShortNameOfActivity(name) {
    419             var match = name.match(/\b([A-Z0-9 ]+)\b/);
     419            var match = name.match(/\b([A-Z][A-Z0-9 ]+)\b/);
    420420            return match && match.length >= 1 ? match[0].trim() : null;
    421421        }
Note: See TracChangeset for help on using the changeset viewer.