ericmbarnard/Knockout-Validation — Issue #25: ' ' (empty string) should be falsy with required validation
Author: iabdulin
Created: 2012-02-19 09:05:50+00:00
State: open

this should do the job:

if (val == undefined) val = '';
val = val.trim();