A one-dimensional variational formulation for quasibrittle fracture