Alfresco Advanced Search is broken when a custom property value contains a hyphen. For example, doing a Full Text Search for
my:customProp:"My Custom - Property Value"
yields results, but when creating a custom Advanced Search form to search for the property using a selectone.ftl control (dropdown) using the above value it yields no results. I've tracked down the bug to a missing semicolon at line 980. I've attached the fixed source.