Modified delta-function potential for hyperfine interactions