2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// Check for illegal characters in breakpoint source.
if(preg_match('/[^a-z_]+/',$this->source)){
thrownewInvalidBreakpointSourceException(format_string("Invalid value '@source' for breakpoint source property. Breakpoint source property can only contain lowercase letters and underscores.",array('@source'=>$this->source)));
if(preg_match('/[^0-9a-z_]+/',$this->source)){
thrownewInvalidBreakpointSourceException(format_string("Invalid value '@source' for breakpoint source property. Breakpoint source property can only contain lowercase alphanumeric characters and underscores.",array('@source'=>$this->source)));
}
// Check for illegal characters in breakpoint names.