Normalize search extensions so that they don't have leading dots.
This is a DWIM feature so that we can just do the right thing
regardless of whether you say the search extensions are, e.g.,
Function:
(defun vl-clean-search-extension (searchext) (declare (xargs :guard (stringp searchext))) (let ((__function__ 'vl-clean-search-extension)) (declare (ignorable __function__)) (b* ((searchext (string-fix searchext)) (len (length searchext)) ((when (and (< 0 len) (eql (char searchext 0) #\.))) (subseq searchext 1 nil))) searchext)))
Theorem:
(defthm stringp-of-vl-clean-search-extension (b* ((new-searchext (vl-clean-search-extension searchext))) (stringp new-searchext)) :rule-classes :type-prescription)